Skip to content

Commit

Permalink
chore(publish): add npm registry publish task
Browse files Browse the repository at this point in the history
  • Loading branch information
rickardvh authored Jan 29, 2021
1 parent 7ce83e1 commit 5640641
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@hogiagroup'
- run: npm ci
- run: npm run build-release
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 5640641

Please sign in to comment.