Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr0id authored Oct 2, 2024
1 parent 8477b14 commit 209a8f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Publish Package to npm

on:
push:
branches:
- master # Trigger on push to master branch
tags:
- 'v*'
- 'v*' # Trigger when any tag is pushed

jobs:
publish-npm:
Expand All @@ -14,8 +16,7 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm test
- run: npm test --passWithNoTests
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 209a8f5

Please sign in to comment.