Update build workflow to use root node_modules
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
5dffffd5a9
commit
6bbec3fac9
1 changed files with 4 additions and 8 deletions
12
.github/workflows/build-site.yml
vendored
12
.github/workflows/build-site.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue