Skip to content

Commit

Permalink
add NODE_AUTH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Feb 22, 2024
1 parent c72b960 commit 402983b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
node-version: 16
- name: Install
run: npm install
env:
NODE_AUTH_TOKEN: ${{secrets.PERSONAL_TOKEN}}
- name: Build
run: npm run docs:build
- name: Deploy
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- name: Install Dependencies
run: pnpm install
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.PERSONAL_TOKEN}}
- name: Build
run: pnpm run build
if: ${{ steps.release.outputs.release_created }}
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
@icqqjs:registry=https://npm.pkg.github.com
always-auth=true
4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhin",
"version": "2.4.5",
"version": "2.4.6",
"main": "lib/index.js",
"bin": "./bin.js",
"scripts": {
Expand Down Expand Up @@ -45,4 +45,4 @@
"@types/ws": "^8.5.5",
"dtsc": "^2.3.0"
}
}
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"initial": "pnpm -C test initial",
"prepare": "husky install",
"lint": "eslint packages --ext .ts",
"lint:fix":"eslint packages --ext .ts --fix",
"lint:fix": "eslint packages --ext .ts --fix",
"format": "prettier packages --write",
"build": "node ./scripts/build.js",
"clean": "node ./scripts/clean.js",
Expand Down Expand Up @@ -42,13 +42,16 @@
"eslint-config-prettier": "latest",
"eslint-plugin-prettier": "latest",
"husky": "^8.0.3",
"vitepress": "1.0.0-rc.39",
"vue": "^3.4.15",
"latest-version": "^5.0.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"semver": "^7.5.4",
"tsc-alias": "^1.8.8",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"vitepress": "1.0.0-rc.39",
"vue": "^3.4.15",
"less": "^4.2.0"
},
"dependencies": {
}
}
40 changes: 20 additions & 20 deletions packages/services/jsondb/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@zhinjs/plugin-jsondb",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"version": "0.0.4",
"scripts": {
"build": "tsc && tsc-alias"
},
"files": [
"lib",
"README.md"
],
"author": "凉菜",
"repository": {
"url": "https://github.com/zhinjs/zhin",
"directory": "packages/services/jsondb"
},
"dependencies": {
"zhin": "workspace:latest"
}
}
"name": "@zhinjs/plugin-jsondb",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"version": "0.0.4",
"scripts": {
"build": "tsc && tsc-alias"
},
"files": [
"lib",
"README.md"
],
"author": "凉菜",
"repository": {
"url": "https://github.com/zhinjs/zhin",
"directory": "packages/services/jsondb"
},
"dependencies": {
"zhin": "latest"
}
}

0 comments on commit 402983b

Please sign in to comment.