更新 .gitea/workflows/build-action.yaml
This commit is contained in:
parent
9d7e3be2de
commit
4593e2617b
|
@ -13,15 +13,31 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
project: [web-office]
|
project: [web-office]
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- corepack enable
|
||||||
|
- corepack prepare pnpm@latest-9 --activate
|
||||||
|
- pnpm config set store-dir .pnpm-store
|
||||||
|
script:
|
||||||
|
- pnpm install
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .pnpm-store
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Output Node.js and npm version
|
# Output Node.js and npm version
|
||||||
- name: Output Node.js and npm version
|
- name: Output Node.js and npm version
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
echo "Node.js version:"
|
echo "Node.js version:"
|
||||||
node -v
|
node -v
|
||||||
echo "npm version:"
|
echo "npm version:"
|
||||||
npm -v
|
npm -v
|
||||||
|
corepack enable
|
||||||
|
corepack prepare pnpm@latest-9 --activate
|
||||||
|
pnpm config set store-dir ~/.pnpm-store
|
||||||
|
echo "pnpm version:"
|
||||||
|
pnpm -v
|
||||||
|
|
||||||
# Clone repository
|
# Clone repository
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
|
@ -32,26 +48,27 @@ jobs:
|
||||||
git checkout test
|
git checkout test
|
||||||
echo "Repository cloned and checked out to test branch."
|
echo "Repository cloned and checked out to test branch."
|
||||||
|
|
||||||
# Cache pnpm dependencies
|
# # Cache pnpm dependencies
|
||||||
- name: Cache pnpm store
|
# - name: Cache pnpm store
|
||||||
uses: https://gitea.com/actions/cache@v3
|
# uses: https://gitea.com/actions/cache@v3
|
||||||
id: pnpm-cache
|
# id: pnpm-cache
|
||||||
with:
|
# with:
|
||||||
path: ~/.pnpm-store
|
# path: ~/.pnpm-store
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }}
|
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
${{ runner.os }}-pnpm-store-
|
# ${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
# # Install dependencies and build
|
# Install dependencies and build
|
||||||
# - name: Install dependencies and build
|
- name: Install dependencies and build
|
||||||
# run: |
|
run: |
|
||||||
# cd pansoft-plrl
|
pnpm config set store-dir ~/.pnpm-store
|
||||||
# echo "Installing dependencies..."
|
cd pansoft-plrl
|
||||||
# pnpm install --no-frozen-lockfile
|
echo "Installing dependencies..."
|
||||||
# echo "Dependencies installed."
|
pnpm install --no-frozen-lockfile
|
||||||
# echo "Building project..."
|
echo "Dependencies installed."
|
||||||
# pnpm build --filter ${{ matrix.project }}
|
echo "Building project..."
|
||||||
# echo "Project built."
|
pnpm build --filter ${{ matrix.project }}
|
||||||
|
echo "Project built."
|
||||||
|
|
||||||
# Transfer files to target server
|
# Transfer files to target server
|
||||||
- name: Transfer files to target server
|
- name: Transfer files to target server
|
||||||
|
|
Loading…
Reference in New Issue