Skip to content

Commit eafdfc5

Browse files
committed
GitHub workflow cleanup and alignment with Docusaurus 3.8
1 parent e745718 commit eafdfc5

File tree

3 files changed

+37
-36
lines changed

3 files changed

+37
-36
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
default: "/"
1414
type: string
1515
environment:
16-
description: GHA environment name
16+
description: GitHub Actions environment name (used for scoping secrets and deployment)
1717
required: true
1818
type: string
1919
secrets:
@@ -35,6 +35,7 @@ jobs:
3535
env:
3636
CI: true
3737
NODE_ENV: production
38+
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
3839
AWS_PAGER: ""
3940
HOSTNAME: ${{ inputs.hostname }}
4041
BASE_URL: ${{ inputs.base_url }}
@@ -53,16 +54,14 @@ jobs:
5354
uses: actions/cache@v3
5455
with:
5556
path: node_modules/.cache
56-
key: ${{ runner.os }}-webpack-cache
57+
key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }}
5758
- name: Install awscli
5859
uses: unfor19/install-aws-cli-action@v1
5960
- name: Install jq
6061
run: sudo apt-get install -y jq
6162
- name: Install dependencies
6263
run: yarn install --frozen-lockfile
6364
- name: Build the Docusaurus site
64-
env:
65-
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
6665
run: yarn build
6766
- name: Deploy the Docusaurus site
6867
env:

.github/workflows/delete-review.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: review/${{ github.ref_name }}
1010
env:
1111
CI: true
12+
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
1213
AWS_PAGER: ""
1314
BASE_URL: /${{ github.ref_name }}/
1415
AWS_DEFAULT_REGION: us-east-1
@@ -23,6 +24,7 @@ jobs:
2324
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
2425
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2526
run: |
27+
echo "Removing files at s3://${S3_BUCKET_NAME}${BASE_URL}"
2628
aws s3 rm --recursive s3://${S3_BUCKET_NAME}${BASE_URL}
2729
export INVALIDATION_ID=$(
2830
aws cloudfront create-invalidation \

.github/workflows/pr.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
name: Pull Request Checks
22

33
on:
4-
pull_request:
5-
branches:
6-
- main
7-
merge_group:
8-
types:
9-
- checks_requested
4+
pull_request:
5+
branches:
6+
- main
7+
merge_group:
8+
types:
9+
- checks_requested
10+
11+
env:
12+
CI: true
13+
NODE_ENV: production
14+
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
1015

1116
jobs:
12-
build-and-deploy:
13-
runs-on: ubuntu-latest
14-
env:
15-
CI: true
16-
NODE_ENV: production
17-
steps:
18-
- uses: actions/checkout@v4
19-
- name: Set up Node.js
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: '20.x'
23-
cache: 'yarn'
24-
- name: Docusaurus Webpack cache
25-
uses: actions/cache@v3
26-
with:
27-
path: node_modules/.cache
28-
key: ${{ runner.os }}-webpack-cache
29-
- name: Install dependencies
30-
run: yarn install --frozen-lockfile
31-
- name: Build the Docusaurus site
32-
env:
33-
NODE_OPTIONS: "--max-old-space-size=8192 --max-http-header-size=8192"
34-
run: yarn build
35-
spellcheck:
36-
runs-on: ubuntu-latest
37-
steps:
17+
build-and-deploy:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '20.x'
25+
cache: 'yarn'
26+
- name: Docusaurus Webpack cache
27+
uses: actions/cache@v3
28+
with:
29+
path: node_modules/.cache
30+
key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }}
31+
- name: Install dependencies
32+
run: yarn install --frozen-lockfile
33+
- name: Build the Docusaurus site
34+
run: yarn build
35+
spellcheck:
36+
runs-on: ubuntu-latest
37+
steps:
3838
- uses: actions/checkout@v4
3939
- uses: codespell-project/actions-codespell@master
4040
name: Check spelling

0 commit comments

Comments
 (0)