Skip to content

Commit

Permalink
fix: add prerelease mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yeyan1996 committed Apr 30, 2024
1 parent f5dda21 commit a454639
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,24 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: install pnpm
run: npm i pnpm@8 -g

- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: install dependencies
run: pnpm install

- name: create and publish versions
uses: changesets/action@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"lint": "eslint **/*.ts --fix",
"serve": "tsc -w",
"test": "jest",
"test:updateSnapshot": "jest --updateSnapshot"
"test:updateSnapshot": "jest --updateSnapshot",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "9.0.7",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"build": "tsc",
"lint": "eslint **/*.ts --fix",
"debug": "node dist/bin/index.js -c",
"test": "echo \"Error: no test specified\""
"test": "echo \"Error: no test specified\"",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@jsdevtools/ono": "^7.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"lint": "eslint **/*.ts --fix",
"serve": "tsc -w",
"test": "jest",
"test:updateSnapshot": "jest --updateSnapshot"
"test:updateSnapshot": "jest --updateSnapshot",
"prepublishOnly": "npm run build"
},
"dependencies": {
"api-spec-converter": "^2.12.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"serve": "vue-cli-service build --mode development --watch",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "echo \"Error: no test specified\""
"test": "echo \"Error: no test specified\"",
"prepublishOnly": "echo \"Skip publish\""
},
"dependencies": {
"core-js": "^3.6.5",
Expand Down
3 changes: 2 additions & 1 deletion packages/userscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "echo \"Error: no test specified\""
"test": "echo \"Error: no test specified\"",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "9.0.7",
Expand Down

0 comments on commit a454639

Please sign in to comment.