mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-12-02 12:45:09 +08:00
fix(publish): improve publish step and clarify OIDC handling
This commit is contained in:
1 parent
d0b68be7ab
commit
542981f2f0
1 file changed
+4
-2
@@ -13,7 +13,9 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24' # trusted publishing 需要 >= 22.14
|
||||
# 不要設 registry-url:它會寫入 _authToken=${NODE_AUTH_TOKEN},空值會干擾 OIDC
|
||||
- run: npm install -g npm@latest
|
||||
- run: npm install
|
||||
- run: npm publish --access public # 不用 NODE_AUTH_TOKEN
|
||||
- name: Publish
|
||||
run: |
|
||||
echo "repo=$GITHUB_REPOSITORY"
|
||||
npm publish --access public
|
||||
Reference in new issue
Block a user