Skip to content

Commit 58ddbd9

Browse files
committed
refactor: 更新工作流中的 npm 包作用域为 @Auraflare
1 parent 4b86f95 commit 58ddbd9

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/release-package-to-github.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
node-version: "24"
2222
registry-url: "https://npm.pkg.github.com"
23-
scope: "@nsnanocat"
23+
scope: "@auraflare"
2424
- run: npm ci
2525
- run: npm run build --if-present
2626
- run: npm test
@@ -45,7 +45,13 @@ jobs:
4545
with:
4646
node-version: "24"
4747
registry-url: "https://npm.pkg.github.com"
48-
scope: "@nsnanocat"
48+
scope: "@auraflare"
4949
- run: npm ci
5050
- run: npm run build --if-present
51-
- run: npm publish
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version: "24"
54+
registry-url: "https://npm.pkg.github.com"
55+
scope: "@auraflare"
56+
- name: Publish to GitHub Packages
57+
run: npm publish --registry=https://npm.pkg.github.com

.github/workflows/release-package-to-npm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
node-version: "24"
3030
registry-url: "https://npm.pkg.github.com"
31-
scope: "@nsnanocat"
31+
scope: "@auraflare"
3232
- run: npm ci
3333
- run: npm run build --if-present
3434
- run: npm test
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
node-version: "24"
5050
registry-url: "https://npm.pkg.github.com"
51-
scope: "@nsnanocat"
51+
scope: "@auraflare"
5252
- run: npm ci
5353
env:
5454
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -68,7 +68,7 @@ jobs:
6868
with:
6969
node-version: "24"
7070
registry-url: "https://registry.npmjs.org"
71-
scope: "@nsnanocat"
71+
scope: "@auraflare"
7272
- name: Publish to npm
7373
run: |
7474
if [[ "${{ steps.npm_tag.outputs.tag }}" == "latest" ]]; then

0 commit comments

Comments
 (0)