chore(deps): update actions/setup-node action to v4 #1910
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name of the action | |
name: build | |
# trigger on pull_request or push events | |
on: | |
push: | |
pull_request: | |
# pipeline to execute | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: clone | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: '18' | |
- name: hugo | |
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2 | |
with: | |
hugo-version: '0.134.2' | |
extended: true | |
- name: build | |
env: | |
HUGO_ENV: production | |
HUGO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install -D --save autoprefixer | |
npm install -D --save postcss-cli | |
hugo --minify |