From be683e2ac36df9c51a5c050d9d500247bd019090 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 2 Oct 2024 10:37:42 -0300 Subject: [PATCH] fix: publish NPM packages with latest tag (#11199) --- .changes/config.json | 2 +- .changes/publish-latest-tag.md | 5 +++++ .github/workflows/publish-cli-js.yml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/publish-latest-tag.md diff --git a/.changes/config.json b/.changes/config.json index cfd8f3c05d97..dbd4bc8b8846 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -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 }, diff --git a/.changes/publish-latest-tag.md b/.changes/publish-latest-tag.md new file mode 100644 index 000000000000..5a5599152544 --- /dev/null +++ b/.changes/publish-latest-tag.md @@ -0,0 +1,5 @@ +--- +"@tauri-apps/api": patch:changes +--- + +Publish package with the latest NPM tag. diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index 93900949ffcf..995805b8b952 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -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 }}