Skip to content

Commit

Permalink
ci: cache after node setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelpidio committed Jan 22, 2025
1 parent 8f8203a commit 86b3f3e
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ jobs:
- 20.x
- 22.x
steps:
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
Expand All @@ -48,6 +40,13 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- run: pnpm install --frozen-lockfile
- run: pnpm build && pnpm build:cjs
# - run: pnpm lint # TODO: fix linting
Expand All @@ -58,13 +57,6 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
Expand All @@ -73,6 +65,13 @@ jobs:
with:
node-version: 20.x
cache: 'pnpm'
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- run: pnpm install --frozen-lockfile
- run: pnpm run build --filter='./packages/*' && pnpm run build:cjs --filter='./packages/*'
- run: pnpx pkg-pr-new publish './packages/*'
Expand Down

0 comments on commit 86b3f3e

Please sign in to comment.