Skip to content

Commit

Permalink
Update cannon.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferret-san committed Nov 5, 2024
1 parent 275993b commit 00eb99f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/cannon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,28 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
# Install Node.js with proper working directory for cache
# Install Node.js without npm cache initially
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache-dependency-path: packages/contracts-bedrock/package-lock.json

# Setup npm cache separately
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: |
~/.npm
packages/contracts-bedrock/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('packages/contracts-bedrock/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
# Install dependencies in the correct directory
- name: Install npm dependencies
working-directory: packages/contracts-bedrock
run: npm install
run: |
npm ci
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down

0 comments on commit 00eb99f

Please sign in to comment.