Skip to content

Commit

Permalink
add npm publish gha (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
acharb authored Jan 30, 2024
1 parent 1a29297 commit d2df226
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npmPublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: npm publish
on:
release:
types: [published]
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn build
- run: yarn test:ci

- name: Publish to NPM
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d2df226

Please sign in to comment.