diff --git a/.changes/config.json b/.changes/config.json index 75f86d79a030..9d7c751633ab 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -115,7 +115,7 @@ "pipe": true }, { - "command": "yarn publish --access public --loglevel silly", + "command": "yarn publish --access public --loglevel silly --tag v1", "dryRunCommand": "npm publish --dry-run --access public", "pipe": true }, diff --git a/.changes/npm-v1-tag.md b/.changes/npm-v1-tag.md new file mode 100644 index 000000000000..9cc21ad10ccb --- /dev/null +++ b/.changes/npm-v1-tag.md @@ -0,0 +1,7 @@ +--- +"tauri-cli": patch:changes +"@tauri-apps/cli": patch:changes +"@tauri-apps/api": patch:changes +--- + +Publish NPM package with the `v1` tag. diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index 295f5fdf50dc..08f2b79d87e2 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -393,7 +393,7 @@ jobs: - name: Publish run: | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish + npm publish --tag v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} diff --git a/tooling/api/package.json b/tooling/api/package.json index a70ab1a0a2af..0906bf2fd913 100644 --- a/tooling/api/package.json +++ b/tooling/api/package.json @@ -35,7 +35,7 @@ "scripts": { "build": "rollup -c --configPlugin typescript", "npm-pack": "yarn build && cd ./dist && npm pack", - "npm-publish": "yarn build && cd ./dist && yarn publish --access public --loglevel silly", + "npm-publish": "yarn build && cd ./dist && yarn publish --access public --loglevel silly --tag v1", "ts:check": "tsc -noEmit", "lint": "eslint --ext ts \"./src/**/*.ts\"", "lint:fix": "eslint --fix --ext ts \"./src/**/*.ts\"",