fix: publish NPM packages with latest tag (#11199)

This commit is contained in:
Lucas Fernandes Nogueira 2024-10-02 10:37:42 -03:00 committed by GitHub
parent c7b9a53525
commit be683e2ac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -107,7 +107,7 @@
"pipe": true
},
{
"command": "pnpm publish --access public --loglevel silly --tag next --no-git-checks",
"command": "pnpm publish --access public --loglevel silly --no-git-checks",
"dryRunCommand": "npm publish --dry-run --access public --no-git-checks",
"pipe": true
},

View File

@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:changes
---
Publish package with the latest NPM tag.

View File

@ -382,7 +382,7 @@ jobs:
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --tag next
npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}