From 402983b055f05707a97a603627eb7724b865e716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E8=8F=9C?= <1659488338@qq.com> Date: Thu, 22 Feb 2024 10:24:36 +0800 Subject: [PATCH] add NODE_AUTH_TOKEN --- .github/workflows/deploy_docs.yml | 2 ++ .github/workflows/release.yml | 2 ++ .npmrc | 3 ++ core/package.json | 4 +-- package.json | 11 +++++--- packages/services/jsondb/package.json | 40 +++++++++++++-------------- 6 files changed, 36 insertions(+), 26 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index f8ae0f6ef..6eddba19e 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71a23fa17..6c2b5d22e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..9771ede3b --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} +@icqqjs:registry=https://npm.pkg.github.com +always-auth=true diff --git a/core/package.json b/core/package.json index e37cc5208..e71feb100 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "zhin", - "version": "2.4.5", + "version": "2.4.6", "main": "lib/index.js", "bin": "./bin.js", "scripts": { @@ -45,4 +45,4 @@ "@types/ws": "^8.5.5", "dtsc": "^2.3.0" } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 8ef4a8ccf..100a0d69e 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { } } diff --git a/packages/services/jsondb/package.json b/packages/services/jsondb/package.json index 1bfec2965..2b4614fec 100644 --- a/packages/services/jsondb/package.json +++ b/packages/services/jsondb/package.json @@ -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" + } +} \ No newline at end of file