Skip to content

Commit

Permalink
Merge pull request #9 from jacquesbh/feature/gha-push-tag
Browse files Browse the repository at this point in the history
Push tag on github registry
  • Loading branch information
jacquesbh authored Nov 12, 2021
2 parents eae8400 + 79da669 commit 057fc97
Show file tree
Hide file tree
Showing 2 changed files with 3,294 additions and 15 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Github npm Registry

on:
push:
tags:
- '*'

jobs:
push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- name: Setup node and GPR auth
uses: actions/setup-node@v2
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@monsieurbiz'
node-version: '14'

- name: Copy generated .npmrc
run: cp $NPM_CONFIG_USERCONFIG ~/.npmrc

- name: Install deps
run: npm install

- name: Publish
run: npm publish
Loading

0 comments on commit 057fc97

Please sign in to comment.