Skip to content

Commit

Permalink
fix: npm publish tag was set to latest for unreleased v4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Jun 2, 2023
1 parent e25e5d9 commit df24a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -60,7 +60,7 @@ jobs:
path: ~/.npm # this is cache where npm installs from before going out to the network
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- run: npm install --prefer-offline
- run: npm publish --tag latest
- run: npm publish --tag latest-v4.x
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -82,6 +82,6 @@ jobs:
- run: npm install --prefer-offline
# The package name needs to be scoped in order to publish on Github Registry
- run: sed -i 's/"cross-fetch"/"@lquixada\/cross-fetch"/g' package.json
- run: npm publish --tag latest
- run: npm publish --tag latest-v4.x
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit df24a9d

Please sign in to comment.