Skip to content

Commit

Permalink
Merge pull request #17 from doppelgunner/github-actions
Browse files Browse the repository at this point in the history
added workflow
  • Loading branch information
doppelgunner authored Jun 18, 2023
2 parents fdf33a1 + a20faed commit 5d91b56
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package
name: Publish package to npmjs

on:
release:
types: [created]
types: [published]

jobs:
publish-gpr:
Expand All @@ -18,8 +15,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 5d91b56

Please sign in to comment.