From d2b0cbf1908bed803b8a55adc14a13ded06bf7d3 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 26 Apr 2024 12:05:22 +0530 Subject: [PATCH] chore(actions/docs): another attempt at fixing npm aliasing --- .github/workflows/docs.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 6103cf0..2fdc92c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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