Skip to content

Commit 273e912

Browse files
committed
so, now we use a github actions marketplace pnpm setup script. this resolves the missing pnpm error from the node.js setup script. the pnpm setup script also performs the environment setup so we removed the manual PNPM_HOME variable setup step and PATH variable setup step, and the pnpm global bin setup step. Not sure why AI didn't suggest using this marketplace item earlier. dumb.
We also don't need to install Antora globally. antora is now in the devdependencies in the `site` directory's package.json, so any calls to antora through pnpm should use the copy of antora that is local to the project.
1 parent 4d2f5b5 commit 273e912

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,17 @@ jobs:
2727
- name: Configure Pages
2828
uses: actions/configure-pages@v5
2929

30+
- name: Install pnpm
31+
uses: pnpm/action-setup/@v4
32+
with:
33+
package_json_file: 'site/package.json'
34+
3035
- name: Set up Node.js ${{ matrix.node-version }}
3136
uses: actions/setup-node@v5
3237
with:
3338
node-version: ${{ matrix.node-version }}
3439
cache: 'pnpm'
3540
cache-dependency-path: 'site/pnpm-lock.yaml'
36-
- name: Configure PNPM_HOME and add to PATH
37-
run: |
38-
echo "PNPM_HOME=${HOME}/.local/share/pnpm" >> $GITHUB_ENV
39-
echo "${HOME}/.local/share/pnpm" >> $GITHUB_PATH
40-
41-
- name: Setup pnpm global bin directory
42-
run: pnpm setup
43-
44-
- name: Install Antora
45-
run: pnpm add -g antora
4641

4742
- name: Install dependencies
4843
working-directory: ./site

0 commit comments

Comments
 (0)