Browse Source

feat(ci): publish cli.js with --tag next

Lucas Nogueira 2 năm trước cách đây
mục cha
commit
35040076ea
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      .github/workflows/publish-cli-js.yml
  2. 1 1
      tooling/api/package.json

+ 1 - 1
.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 next
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}

+ 1 - 1
tooling/api/package.json

@@ -13,7 +13,7 @@
   "scripts": {
     "build": "yarn tsup && node ./scripts/after-build.cjs",
     "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 next",
     "lint": "eslint --ext ts \"./src/**/*.ts\"",
     "lint-fix": "eslint --fix --ext ts \"./src/**/*.ts\"",
     "format": "prettier --write --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path ../../.prettierignore",