chore(deps): update dependency rimraf to v6 #306
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 6.x.x | |
- name: Setup Node.js | |
uses: actions/setup-node@v3.4.1 | |
with: | |
cache: 'pnpm' | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.96.0' | |
extended: true | |
- name: Get Date | |
id: get-date | |
run: | | |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")" | |
- name: Cache Hugo | |
uses: actions/cache@v3.0.8 | |
with: | |
path: resources | |
key: ${{ runner.os }}-hugo-${{ steps.get-date.outputs.date }} | |
restore-keys: | | |
${{ runner.os }}-hugo- | |
- name: Setup pnpm & install dependencies | |
uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 6.x.x | |
run_install: | | |
- recursive: false | |
args: [--frozen-lockfile] | |
- name: Run build | |
run: pnpm run build |