Skip to content

Commit dfe4de3

Browse files
committed
fix workflow
1 parent 3a1d75f commit dfe4de3

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Test
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main]
66
pull_request:
7-
types: [opened, synchronize]
7+
types: [opened, synchronize]
88

99
jobs:
1010
lint:
@@ -15,32 +15,33 @@ jobs:
1515
- name: Install Node.js
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 16
1919

2020
- name: Install pnpm
2121
uses: pnpm/action-setup@v2
2222
with:
23-
version: 8
24-
run_install: false
23+
version: 8
24+
run_install: false
2525

2626
- name: Get pnpm store directory
2727
shell: bash
2828
run: |
29-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
29+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032

3133
- uses: actions/cache@v3
3234
name: Setup pnpm cache
3335
with:
34-
path: ${{ env.STORE_PATH }}
35-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('web/**/pnpm-lock.yaml') }}
36-
restore-keys: |
37-
${{ runner.os }}-pnpm-store-
36+
path: ${{ env.STORE_PATH }}
37+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('web/**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-store-
3840
3941
- name: Install dependencies
4042
run: pnpm install --frozen-lockfile --strict-peer-dependencies
41-
working-directory: web
4243
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4445

4546
- name: Lint
4647
run: pnpm run lint:ci

0 commit comments

Comments
 (0)