-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4f4fb1
commit 50f0b8b
Showing
2 changed files
with
33 additions
and
35 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
name: Build Only | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths: | ||
- '.github/workflows/**' | ||
- 'docs/**' | ||
- 'yarn.lock' | ||
- 'pnpm-lock.yaml' | ||
# trigger deployment manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ⛓️ | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
submodules: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
node-version: '20' | ||
cache: pnpm | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
id: yarn-cache | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
if: steps.yarn-cache.outputs.cache-hit != 'true' | ||
run: yarn --frozen-lockfile | ||
# choose pnpm version to use | ||
version: 8 | ||
# install deps with pnpm | ||
run_install: true | ||
|
||
- name: Build VuePress site | ||
run: yarn docs:build | ||
run: pnpm run docs:build |