chore(actions/docs): fix npm aliasing

This commit is contained in:
Erica Marigold 2024-04-26 12:01:49 +05:30 committed by GitHub
parent b0caea58dc
commit 6fab3b64ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,11 +27,22 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4.0.2
- name: Register aliases for NPM command
shell: bash
run: |
rc=/tmp/rcfile
echo 'shopt -s expand_aliases' > $rc
echo 'alias npm="pnpm" ' >> $rc
- name: Install Moonwave CLI
run: pnpm i -g moonwave
run: |
source /tmp/rcfile
npm i -g moonwave
- name: Build static site
run: alias npm=pnpm && moonwave build
run: |
source /tmp/rcfile
moonwave build
- name: Setup GitHub pages
uses: actions/configure-pages@v3