ci: test
This commit is contained in:
parent
8a7f164fca
commit
19281023f3
16
.github/workflows/publish.yaml
vendored
16
.github/workflows/publish.yaml
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
|
# eslint-disable yaml/plain-scalar
|
||||||
name: Publish www
|
name: Publish www
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -47,26 +48,25 @@ jobs:
|
||||||
}}
|
}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# Run a build step here
|
# Run a build step here
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: pnpm
|
cache: 'pnpm'
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v3.0.0
|
- name: Install pnpm
|
||||||
name: Install pnpm
|
uses: pnpm/action-setup@v3.0.0
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- name: Setup pnpm cache
|
||||||
name: Setup pnpm cache
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
|
@ -74,7 +74,7 @@ jobs:
|
||||||
${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm i
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build www
|
- name: Build www
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user