We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e88dd9c commit 87cdd05Copy full SHA for 87cdd05
.github/workflows/npm-publish-github-packages.yml
@@ -47,6 +47,18 @@ jobs:
47
- name: Run a one-line script
48
run: echo Hello, world!
49
50
+ # 设置环境变量
51
+ - name: Print a greeting
52
+ env:
53
+ MY_VAR: Hi there! My name is
54
+ FIRST_NAME: Mona
55
+ MIDDLE_NAME: The
56
+ LAST_NAME: Octocat
57
+ run: |
58
+ echo $MY_VAR $FIRST_NAME $MIDDLE_NAME $LAST_NAME.
59
+ # 使用条件判断
60
+ - if: ${{ env.MY_VAR != '' }}
61
+ run: echo 'This step will only run if the secret has a value set.'
62
# - run: npm ci
63
# 设定安装工具为 yarn
64
# - name: Global install Yarn 🔨
0 commit comments