chore: publish 1.x NPM packages with the v1 tag (#11188)

This commit is contained in:
Lucas Fernandes Nogueira
2024-10-15 00:02:01 -03:00
committed by GitHub
parent 36ea78613d
commit 7b0aac9129
3 changed files with 3 additions and 3 deletions

View File

@@ -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
},

View File

@@ -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 }}

View File

@@ -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\"",