From 6bbec3fac9f93af6703749aaade6db13c99dc722 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 26 Mar 2022 20:50:37 -0500 Subject: [PATCH] Update build workflow to use root node_modules Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- .github/workflows/build-site.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index dc0c2cd..bc23a5e 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -15,8 +15,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: lts/* - cache: npm - cache-dependency-path: assets/package-lock.json - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: @@ -26,19 +24,17 @@ jobs: run: | npm config set "@fortawesome:registry" https://npm.fontawesome.com/ npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_TOKEN }} - - name: Install global npm packages + - name: Install postcss run: | - npm install postcss@^8.4.6 postcss-cli@^9.1.0 @fullhuman/postcss-purgecss@^2.0.3 - npm -g install postcss@^8.4.6 postcss-cli@^9.1.0 @fullhuman/postcss-purgecss@^2.0.3 - - name: Install local npm packages + npm -g install postcss-cli + - name: Install npm packages run: | - cd assets npm install - cd .. - name: Run Hugo run: | hugo - name: Deploy to gh-pages + if: ${{ !env.ACT }} uses: rdarida/simple-github-pages-deploy-action@v1 with: git-user: "MillironX"