Skip to content

Commit

Permalink
Fix publish workflow (#1)
Browse files Browse the repository at this point in the history
This PR fixes Npm Publish workflow.
  • Loading branch information
eacet authored Jul 17, 2024
1 parent 6c61543 commit 4d392b4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to NPM

on:
push:
tags:
- '*'

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci --unsafe-perm
- run: npm run build
- run: npm test
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 4d392b4

Please sign in to comment.