From 6fab3b64ce90e1fd5e8b9cc08949195c330481db Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 26 Apr 2024 12:01:49 +0530 Subject: [PATCH] chore(actions/docs): fix npm aliasing --- .github/workflows/docs.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index cf27a46..6103cf0 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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