Skip to content

Commit

Permalink
πŸ‘· change npm publish order
Browse files Browse the repository at this point in the history
  • Loading branch information
o4kapuk committed Feb 12, 2024
1 parent 6678963 commit 8f6fa50
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/npm.yml
Expand Up @@ -14,28 +14,25 @@ jobs:
- name: ‡️ Checkout
uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- name: πŸ”¨ Setup node (github registry)
- name: πŸ‘· Install
run: npm ci
- name: πŸ”¨ Setup node
uses: actions/setup-node@v3
with:
node-version: '10.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@screeps'
- name: πŸ‘· Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ“¦οΈ Publish package (github registry)
- name: πŸ“¦οΈ Publish package (npmjs)
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ”¨ Setup node (npmjs)
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: πŸ”¨ Setup node (github registry)
uses: actions/setup-node@v3
with:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@screeps'
- name: πŸ“¦οΈ Publish package (npmjs)
- name: πŸ“¦οΈ Publish package (github registry)
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8f6fa50

Please sign in to comment.