Skip to content

Commit

Permalink
chore: publish 1.x NPM packages with the v1 tag
Browse files Browse the repository at this point in the history
v2 stable is knocking, and it'll be the `latest` tag release soon, so the 1.x ones should have their own tag `v1`
  • Loading branch information
lucasfernog committed Oct 1, 2024
1 parent 019f94f commit fa01a1a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changes/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
7 changes: 7 additions & 0 deletions .changes/npm-v1-tag.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion .github/workflows/publish-cli-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion tooling/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down

0 comments on commit fa01a1a

Please sign in to comment.