Skip to content

Commit

Permalink
fixup npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddha committed Sep 25, 2024
1 parent 77018c9 commit d501e4c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ jobs:
name: fs-trace-linux-amd64
path: bin/fs-trace

publish-npm:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Publish to npm
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit d501e4c

Please sign in to comment.