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