File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2727 - name : Setup Node.js
2828 uses : actions/setup-node@v4
2929 with :
30- node-version : 18
30+ node-version : 22
3131
3232 - name : Install dependencies
3333 run : npm ci
3636
3737 - name : Lint Code (ESLint)
3838 run : npm run lint
39-
39+
4040 - name : Inject correct baseUrl into docusaurus.config.js
4141 id : inject
4242 run : |
5050 echo "baseUrl=$BASE_URL" >> $GITHUB_OUTPUT
5151
5252 sed -i "s|baseUrl: '.*'|baseUrl: '$BASE_URL'|" docusaurus.config.js
53-
53+
5454 - name : Comment injected baseUrl on PR
5555 if : github.event_name == 'pull_request'
5656 uses : marocchino/sticky-pull-request-comment@v2
9999 publish_dir : ./build
100100 publish_branch : gh-pages
101101 destination_dir : ${{ steps.vars.outputs.destination_dir }}
102- keep_files : true # Keep other PR previews intact
102+ keep_files : true # Keep other PR previews intact
103103
104104 - name : Comment preview link on PR
105105 if : github.event_name == 'pull_request'
@@ -119,12 +119,12 @@ jobs:
119119 uses : actions/checkout@v4
120120 with :
121121 ref : gh-pages
122-
122+
123123 - name : Remove PR preview directory
124124 run : |
125125 git config user.name "github-actions[bot]"
126126 git config user.email "github-actions[bot]@users.noreply.github.com"
127-
127+
128128 if [ -d "pr-${{ github.event.pull_request.number }}" ]; then
129129 git rm -rf pr-${{ github.event.pull_request.number }}
130130 git commit -m "🧹 Remove preview for PR #${{ github.event.pull_request.number }}"
You can’t perform that action at this time.
0 commit comments