Skip to content

Commit 3cd805d

Browse files
committed
Update npm-publish-github-packages.yml
1 parent 6d4f353 commit 3cd805d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
publish-gpr:
2828
# 指定的运行器环境
2929
runs-on: ubuntu-latest
30-
permissions:
31-
contents: write
32-
packages: write
30+
# permissions:
31+
# contents: write
32+
# packages: write
3333
# 设置 node 版本
3434
strategy:
3535
matrix:
@@ -57,6 +57,7 @@ jobs:
5757
run: |
5858
echo $MY_VAR $FIRST_NAME $MIDDLE_NAME $LAST_NAME.
5959
# 使用条件判断
60+
- name: Use if
6061
- if: ${{ env.MY_VAR != '' }}
6162
run: echo 'This step will only run if the secret has a value set.'
6263
# - run: npm ci

0 commit comments

Comments
 (0)