mirror of
https://github.com/CompeyDev/rusty-luau.git
synced 2024-12-12 04:40:40 +00:00
chore(actions/docs): fix npm aliasing
This commit is contained in:
parent
b0caea58dc
commit
6fab3b64ce
1 changed files with 13 additions and 2 deletions
15
.github/workflows/docs.yaml
vendored
15
.github/workflows/docs.yaml
vendored
|
@ -27,11 +27,22 @@ jobs:
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v4.0.2
|
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
|
- name: Install Moonwave CLI
|
||||||
run: pnpm i -g moonwave
|
run: |
|
||||||
|
source /tmp/rcfile
|
||||||
|
npm i -g moonwave
|
||||||
|
|
||||||
- name: Build static site
|
- name: Build static site
|
||||||
run: alias npm=pnpm && moonwave build
|
run: |
|
||||||
|
source /tmp/rcfile
|
||||||
|
moonwave build
|
||||||
|
|
||||||
- name: Setup GitHub pages
|
- name: Setup GitHub pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v3
|
||||||
|
|
Loading…
Reference in a new issue