Skip to content

Commit d934fb4

Browse files
committed
ci: fix npm cache step
1 parent d0739ce commit d934fb4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci_cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ jobs:
2727
# - env:
2828
# GITHUB_CONTEXT: ${{ toJSON(github) }}
2929
# run: echo "$GITHUB_CONTEXT"
30-
- run: echo "IS_RELEASE=$(if [ \"$GITHUB_REF_NAME\" = \"master\" -a \"$GITHUB_EVENT_NAME\" = \"push\" ]; then echo true; else echo false; fi)" >> $GITHUB_ENV
31-
- uses: actions/setup-node@v3
32-
with:
33-
node-version: 16
34-
cache: 'npm'
35-
- run: sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
3630
- id: pre-checkout
3731
env:
3832
COMMITS: ${{ toJson(github.event.commits) }}
@@ -46,6 +40,11 @@ jobs:
4640
- uses: actions/checkout@v3
4741
with:
4842
fetch-depth: ${{ steps.pre-checkout.outputs.fetch-depth }}
43+
- uses: actions/setup-node@v3
44+
with:
45+
node-version: 16
46+
cache: 'npm'
47+
- run: sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
4948
- run: scripts/print_env.sh
5049
- run: npm ci
5150
- run: npx commitlint --from "$GITHUB_EVENT_BEFORE" --to "$GITHUB_EVENT_AFTER" --verbose

0 commit comments

Comments
 (0)