Skip to content

Commit

Permalink
[CI] Fixing node version in Publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoraele committed May 9, 2021
1 parent 635d663 commit c313cf5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,25 @@ jobs:
contents: read
packages: write
steps:
# Setup
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts
node-version: '16'
- run: npm ci

# Publish to NPM
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Publish to GitHub
- uses: actions/setup-node@v2
with:
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
env:
NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c313cf5

Please sign in to comment.