chore(actions/docs): another attempt at fixing npm aliasing

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

View file

@ -9,6 +9,10 @@ permissions:
pages: write
id-token: write
defaults:
run:
shell: bash
jobs:
deploy:
environment:
@ -28,21 +32,16 @@ jobs:
uses: actions/setup-node@v4.0.2
- name: Register aliases for NPM command
shell: bash
run: |
rc=/tmp/rcfile
rc=$HOME/.bashrc
echo 'shopt -s expand_aliases' > $rc
echo 'alias npm="pnpm" ' >> $rc
- name: Install Moonwave CLI
run: |
source /tmp/rcfile
npm i -g moonwave
run: npm i -g moonwave
- name: Build static site
run: |
source /tmp/rcfile
moonwave build
run: moonwave build
- name: Setup GitHub pages
uses: actions/configure-pages@v3