Skip to content

Commit

Permalink
👷 custom tags for npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
o4kapuk committed Dec 5, 2023
1 parent 7d5272a commit 5f77d28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@screeps'
- name: 📦️ Publish package (npmjs)
if: github.ref_name == 'master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: 📦️ Publish package (npmjs)
if: github.ref_name != 'master'
run: npm publish --tag github.ref_name
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}

0 comments on commit 5f77d28

Please sign in to comment.