Skip to content

Commit

Permalink
fix: use turbo ci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Jul 4, 2024
1 parent a25ec64 commit d6a0cf3
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
- name: Cache turbo build setup
uses: actions/cache@v4
with:
node-version: 16.x
cache: 'pnpm'
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Install Node.js
uses: actions/setup-node@v4
with:
version: 7

- name: Install Dependencies
run: |
retry() {
for i in {1..5}; do $@ && break || sleep 30; done
}
retry pnpm install --frozen-lockfile
node-version: 20

- name: Build Project
run: pnpm run build
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false

0 comments on commit d6a0cf3

Please sign in to comment.