Skip to content

Commit 79246f9

Browse files
committed
Fix GH actions
1 parent 725a9eb commit 79246f9

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v2
21+
- uses: actions/setup-node@v3
2122
with:
22-
fetch-depth: 0
23+
node-version: 18
2324

24-
- name: Use Node.js
25-
uses: actions/setup-node@v1
26-
with:
27-
node-version: 18.x
25+
- name: AWS CLI version
26+
run: "aws --version"
2827

29-
- uses: pnpm/action-setup@v2.2.2
28+
- uses: pnpm/action-setup@v2
3029
with:
31-
version: 7
30+
version: 8.2.0
3231

3332
- name: Get pnpm store directory
3433
id: pnpm-cache
@@ -42,12 +41,8 @@ jobs:
4241
restore-keys: |
4342
${{ runner.os }}-pnpm-store-
4443
45-
- name: AWS CLI version
46-
run: "aws --version"
47-
4844
- name: Install Dependencies
4945
run: pnpm install
50-
working-directory: ./
5146

5247
- name: Build the website
5348
run: pnpm build
@@ -64,7 +59,7 @@ jobs:
6459
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6560

6661
- name: Deploy docs (production)
67-
if: github.ref == 'refs/heads/main'
62+
if: github.ref == 'refs/heads/master'
6863
run: pnpm run deploy:prod
6964
working-directory: ./website
7065
env:

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
issues: write
15+
repository-projects: write
16+
deployments: write
17+
packages: write
18+
pull-requests: write
1119

1220
steps:
1321
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v3
1423
with:
15-
fetch-depth: 0
16-
17-
- name: Use Node.js
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: 18.x
24+
node-version: 18
2125

2226
- uses: pnpm/action-setup@v2.2.2
2327
with:

0 commit comments

Comments
 (0)