Skip to content

Commit 878d7b5

Browse files
committed
use newer action versions
1 parent 8871af6 commit 878d7b5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/create-spectacle.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: create-spectacle
22

3+
env:
4+
PNPM_STORE_PATH: ''
5+
36
on:
47
push:
58
branches:
@@ -24,26 +27,29 @@ jobs:
2427
node-version: [18.x]
2528
create-type: ['tsx', 'onepage']
2629
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-node@v2
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
2932
with:
3033
node-version: ${{ matrix.node-version }}
3134

3235
# Wireit cache
3336
- uses: google/wireit@setup-github-actions-caching/v1
3437

35-
- uses: pnpm/[email protected]
38+
- uses: pnpm/action-setup@v3
39+
name: Install pnpm
3640
with:
41+
run_install: false
3742
version: 7
3843

3944
- name: Get pnpm store directory
4045
id: pnpm-cache
41-
run: echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
46+
run: |
47+
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
4248
4349
- name: Setup pnpm cache
4450
uses: actions/cache@v3
4551
with:
46-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
52+
path: ${{ env.PNPM_STORE_PATH }}
4753
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
4854
restore-keys: |
4955
${{ runner.os }}-pnpm-store-

0 commit comments

Comments
 (0)