mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-08-08 11:38:42 +08:00
chore: 更新 publish.yml,修正 Node 環境設置並添加 registry-url
This commit is contained in:
@@ -10,17 +10,16 @@ jobs:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write # OIDC 必須
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# 移除 registry-url,單純使用 setup-node 準備 Node 環境
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
|
||||||
# OIDC 和 provenance 會自動向官方 Registry 要權限
|
|
||||||
- run: npm publish --provenance
|
- run: npm publish --provenance
|
||||||
Reference in New Issue
Block a user