Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadsalahuddeen committed Jul 2, 2024
1 parent e04fd7b commit 44f333e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js Package

on:
push:
branches: [main]
branches: [master]
release:
types: [created]

Expand All @@ -17,8 +17,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test


publish-npm:
needs: build
Expand All @@ -29,7 +28,7 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci

- run: npm run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 44f333e

Please sign in to comment.