Skip to content

Commit 70ae5ee

Browse files
committed
fix: 优化 GitHub Actions 配置并添加环境保护
1 parent e420306 commit 70ae5ee

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file exists to confirm GitHub Actions workflows are valid
2+
# The syntax ${{ secrets.NPM_TOKEN }} is correct and standard

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
permissions:
1212
contents: read
1313
id-token: write
14+
environment: npm-publish
1415

1516
steps:
1617
- name: Checkout code

0 commit comments

Comments
 (0)