Skip to content

Commit af09674

Browse files
fix: use env context for secrets check in workflow
1 parent 1502413 commit af09674

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
cache: npm
2727

2828
- name: Configure Artifactory registry
29-
if: ${{ secrets.JF_NPM_TOKEN != '' }}
30-
run: npm config set //ankorstore.jfrog.io/artifactory/api/npm/npm-virtual/:_auth ${{ secrets.JF_NPM_TOKEN }}
29+
if: env.JF_NPM_TOKEN != ''
30+
env:
31+
JF_NPM_TOKEN: ${{ secrets.JF_NPM_TOKEN }}
32+
run: npm config set //ankorstore.jfrog.io/artifactory/api/npm/npm-virtual/:_auth "$JF_NPM_TOKEN"
3133

3234
- run: npm ci
3335

0 commit comments

Comments
 (0)