1818
1919jobs :
2020 determine-environment :
21- runs-on : gh-runner-large
21+ runs-on : ubuntu-latest
2222 outputs :
2323 environment : ${{ steps.set-env.outputs.environment }}
2424 steps :
3434 fi
3535
3636 build :
37- runs-on : gh-runner-large
37+ runs-on : ubuntu-latest
3838 needs : determine-environment
3939 environment : ${{ needs.determine-environment.outputs.environment }}
4040 permissions :
@@ -44,16 +44,16 @@ jobs:
4444 steps :
4545 - name : Check out source code
4646 uses : actions/checkout@v4
47-
47+
4848 - name : Set up Node.js
4949 uses : actions/setup-node@v3
5050 with :
5151 node-version : ' 22.x'
52-
52+
5353 - name : Get npm cache directory
5454 id : npm-cache-dir
5555 run : echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
56-
56+
5757 - name : Cache Node.js dependencies
5858 uses : actions/cache@v3
5959 with :
6262 key : v2-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
6363 restore-keys : |
6464 v2-${{ runner.os }}-node-
65-
65+
6666 - name : Cache Docusaurus build
6767 uses : actions/cache@v3
6868 id : cache-build
7373 key : v2-${{ runner.os }}-docusaurus-${{ hashFiles('src/**', 'docs/**', 'blog/**', 'docusaurus.config.js', 'sidebars.js') }}
7474 restore-keys : |
7575 v2-${{ runner.os }}-docusaurus-
76-
76+
7777 - name : Cache webpack
7878 uses : actions/cache@v3
7979 with :
@@ -82,30 +82,30 @@ jobs:
8282 key : v2-${{ runner.os }}-webpack-${{ hashFiles('**/package-lock.json') }}
8383 restore-keys : |
8484 v2-${{ runner.os }}-webpack-
85-
85+
8686 - name : Install dependencies and build site
8787 run : |
8888 npm ci
89-
89+
9090 if [[ "${{ steps.cache-build.outputs.cache-hit }}" == "true" ]]; then
9191 echo "Build cache found, checking if rebuild needed..."
9292 else
9393 echo "No build cache found, performing full build..."
9494 fi
95-
95+
9696 npm run ci
9797 env :
9898 NODE_OPTIONS : " --max-old-space-size=16384"
9999 NODE_ENV : ${{ needs.determine-environment.outputs.environment }}
100-
100+
101101 - name : Upload artifact for deployment
102102 uses : actions/upload-artifact@v4
103103 with :
104104 name : build-output
105105 path : build/
106-
106+
107107 deploy :
108- runs-on : gh-runner-large
108+ runs-on : ubuntu-latest
109109 needs : [build, determine-environment]
110110 environment : ${{ needs.determine-environment.outputs.environment }}
111111 steps :
0 commit comments