Skip to content

Commit 21b96f5

Browse files
committed
upgrade gh actions
1 parent abddbac commit 21b96f5

File tree

3 files changed

+56
-31
lines changed

3 files changed

+56
-31
lines changed

.github/workflows/preview-deploy.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout Repo
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

18-
- name: Setup Node.js v18
19-
uses: actions/setup-node@v3
18+
- name: Setup Node.js v20
19+
uses: actions/setup-node@v4
2020
with:
2121
node-version: '20.x'
2222

@@ -26,20 +26,28 @@ jobs:
2626
rubygems: latest
2727
bundler-cache: true
2828

29-
- uses: pnpm/action-setup@v2
29+
- uses: pnpm/action-setup@v4
30+
name: Install pnpm
3031
with:
3132
version: 9
33+
run_install: false
3234

33-
- name: use node.js 20
34-
uses: actions/setup-node@v3
35+
- name: Get pnpm store directory
36+
shell: bash
37+
run: |
38+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39+
40+
- uses: actions/cache@v4
41+
name: Setup pnpm cache
3542
with:
36-
node-version: 20.x
37-
cache: 'pnpm'
38-
cache-dependency-path: |
39-
pnpm-lock.yaml
43+
path: ${{ env.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
4047
4148
- name: Install dependencies
4249
run: pnpm install
50+
4351
- name: Install Vercel CLI
4452
run: npm install --global vercel@canary
4553
- name: Pull Vercel Environment Information

.github/workflows/release.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,31 @@ jobs:
1616
node-version: [18.x]
1717
steps:
1818
- name: Checkout Repo
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

21-
- name: Setup Node.js v${{ matrix.node-version }}
22-
uses: actions/setup-node@v3
21+
- name: Setup Node.js v20
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: ${{ matrix.node-version }}
24+
node-version: '20.x'
2525

26-
- uses: pnpm/action-setup@v2
26+
- uses: pnpm/action-setup@v4
27+
name: Install pnpm
2728
with:
2829
version: 9
30+
run_install: false
2931

30-
- name: use node.js v${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
32+
- name: Get pnpm store directory
33+
shell: bash
34+
run: |
35+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
36+
37+
- uses: actions/cache@v4
38+
name: Setup pnpm cache
3239
with:
33-
node-version: ${{ matrix.node-version }}
34-
cache: 'pnpm'
35-
cache-dependency-path: |
36-
pnpm-lock.yaml
40+
path: ${{ env.STORE_PATH }}
41+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
restore-keys: |
43+
${{ runner.os }}-pnpm-store-
3744
3845
- name: Install dependencies
3946
run: pnpm install

.github/workflows/tests.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
MINIO_ROOT_PASSWORD: minioadmin
3737
options: --name=minio --health-cmd "curl http://localhost:9000/minio/health/live" --health-interval=0.1s --health-timeout=5s --health-retries=20
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
# - uses: microsoft/playwright-github-action@v1
4141
- run: wget https://dl.min.io/client/mc/release/linux-amd64/mc
4242
- run: chmod +x ./mc
@@ -58,19 +58,29 @@ jobs:
5858
bundler-cache: true
5959
working-directory: "tests/rails"
6060

61-
- uses: pnpm/action-setup@v2
61+
- name: Setup Node.js v20
62+
uses: actions/setup-node@v4
6263
with:
63-
version: 9.x.x
64+
node-version: '20.x'
65+
66+
- uses: pnpm/action-setup@v4
67+
name: Install pnpm
68+
with:
69+
version: 9
6470
run_install: false
6571

66-
- name: use node.js ${{ matrix.node-version }}
67-
uses: actions/setup-node@v3
72+
- name: Get pnpm store directory
73+
shell: bash
74+
run: |
75+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
76+
77+
- uses: actions/cache@v4
78+
name: Setup pnpm cache
6879
with:
69-
node-version: ${{ matrix.node-version }}
70-
cache: 'pnpm'
71-
cache-dependency-path: |
72-
pnpm-lock.yaml
73-
tests/rails/pnpm-lock.yaml
80+
path: ${{ env.STORE_PATH }}
81+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
82+
restore-keys: |
83+
${{ runner.os }}-pnpm-store-
7484
7585
- name: Install via pnpm
7686
run: |

0 commit comments

Comments
 (0)