Skip to content

Commit

Permalink
πŸ’š fix npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
o4kapuk committed Feb 12, 2024
1 parent e039750 commit 53b0ec7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/npm.yml
Expand Up @@ -13,17 +13,23 @@ jobs:
steps:
- name: ‡️ Checkout
uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- name: πŸ‘· Install
run: npm ci
- name: πŸ”¨ Setup node
uses: actions/setup-node@v3
with:
node-version: '10.x'
- name: πŸ‘· Install
run: npm ci
- name: πŸ“¦οΈ Publish package (npmjs)
if: github.ref_name == 'master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: πŸ“¦οΈ Publish tagged package (npmjs)
if: github.ref_name != 'master'
run: npm publish --tag ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
# Setup .npmrc file to publish to GitHub Packages
- name: πŸ”¨ Setup node (github registry)
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 53b0ec7

Please sign in to comment.