Skip to content

Commit

Permalink
ci: fix npm cache step
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Nov 4, 2024
1 parent d0739ce commit d934fb4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ jobs:
# - env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"
- run: echo "IS_RELEASE=$(if [ \"$GITHUB_REF_NAME\" = \"master\" -a \"$GITHUB_EVENT_NAME\" = \"push\" ]; then echo true; else echo false; fi)" >> $GITHUB_ENV
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
- id: pre-checkout
env:
COMMITS: ${{ toJson(github.event.commits) }}
Expand All @@ -46,6 +40,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: ${{ steps.pre-checkout.outputs.fetch-depth }}
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
- run: scripts/print_env.sh
- run: npm ci
- run: npx commitlint --from "$GITHUB_EVENT_BEFORE" --to "$GITHUB_EVENT_AFTER" --verbose
Expand Down

0 comments on commit d934fb4

Please sign in to comment.