Skip to content

Commit

Permalink
ci: v4 updated
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Jun 27, 2024
1 parent 6611477 commit 5d6257f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,21 @@ jobs:
!startsWith(github.event.head_commit.message , 'docs')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup cache for Chromium binary
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/puppeteer/chrome
key: chromium-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Set node version to latest
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'pnpm'
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,23 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup cache for Chromium binary
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/puppeteer/chrome
key: chromium-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Set node version to latest
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'pnpm'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"workspaces": [
"packages/*"
],
"packageManager": "pnpm@latest",
"scripts": {
"prepare": "husky install",
"init": "npx pnpm install",
Expand Down

0 comments on commit 5d6257f

Please sign in to comment.