From 476e3f1607b08dbbda2e541233d4130187daf5bc Mon Sep 17 00:00:00 2001 From: Meqn Date: Wed, 20 Nov 2024 09:02:41 +0000 Subject: [PATCH] chore: Update package.json --- .changeset/config.json | 2 +- .github/workflows/release.yml | 7 +++---- libs/Animator/package.json | 5 +++-- libs/Drag/package.json | 10 ++++++++-- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 1e802c5..f87a5bd 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -4,7 +4,7 @@ "commit": false, "fixed": [], "linked": [], - "access": "restricted", + "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", "ignore": [] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 305e465..9e8b434 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ env: CI: true NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} PNPM_CACHE_FOLDER: .pnpm-store - PKG_RELEASE_KEY: lastReleaseCommit # 定义 package.json 最后发布的key + PKG_RELEASE_KEY: lastReleaseCommit jobs: release: # prevents this action from running on forks @@ -19,14 +19,13 @@ jobs: - name: checkout code repository uses: actions/checkout@v4 with: - # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - persist-credentials: true # 允许在工作流中使用 GitHub 令牌 + persist-credentials: true - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9 + version: 8 run_install: false - name: Setup Node.js diff --git a/libs/Animator/package.json b/libs/Animator/package.json index 8407b90..7d2a673 100644 --- a/libs/Animator/package.json +++ b/libs/Animator/package.json @@ -21,8 +21,7 @@ ], "buildOptions": { "name": "Animator", - "target": "es2015", - "clean": true + "target": "es2015" }, "keywords": [ "animator", @@ -35,6 +34,8 @@ ], "publishConfig": { "access": "public", + "scope": "@jotter", + "tag": "latest", "registry": "https://registry.npmjs.org" }, "sideEffects": false, diff --git a/libs/Drag/package.json b/libs/Drag/package.json index 437839f..89ab2de 100644 --- a/libs/Drag/package.json +++ b/libs/Drag/package.json @@ -24,8 +24,7 @@ "target": [ "es2015", "es5" - ], - "clean": true + ] }, "keywords": [ "drag-and-drop", @@ -34,6 +33,13 @@ "drop", "touch" ], + "publishConfig": { + "access": "public", + "scope": "@jotter", + "tag": "latest", + "registry": "https://registry.npmjs.org" + }, + "sideEffects": false, "homepage": "https://github.com/Marinerer/jotter/tree/main/libs/drag", "repository": { "type": "git",