Skip to content

Commit 742d0f2

Browse files
committed
ci: update lock file
1 parent c93d036 commit 742d0f2

2 files changed

Lines changed: 86 additions & 34 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This is a basic workflow to help you get started with Actions
21
name: deploy
32

43
# Controls when the workflow will run
@@ -15,40 +14,27 @@ jobs:
1514
build:
1615
# The type of runner that the job will run on
1716
runs-on: ubuntu-latest
18-
1917
# Steps represent a sequence of tasks that will be executed as part of the job
2018
steps:
2119
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2220
- uses: actions/checkout@v4
23-
24-
- name: Setup Node.js
25-
uses: actions/setup-node@v4
26-
with:
27-
node-version: "18.x"
28-
21+
2922
- name: Setup pnpm
3023
uses: pnpm/action-setup@v4
3124
with:
3225
version: 8
33-
34-
- name: Get pnpm store directory
35-
shell: bash
36-
run: |
37-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38-
39-
- name: Setup pnpm cache
40-
uses: actions/cache@v4
26+
27+
- name: install Node.js
28+
uses: actions/setup-node@v4
4129
with:
42-
path: ${{ env.STORE_PATH }}
43-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44-
restore-keys: |
45-
${{ runner.os }}-pnpm-store-
46-
47-
- name: Install dependencies
48-
run: pnpm install --frozen-lockfile
49-
50-
- name: Build app
51-
run: pnpm run build
30+
node-version: '18'
31+
cache: 'pnpm'
32+
33+
- name: install deps
34+
run: pnpm install
35+
36+
- name: build app
37+
run: pnpm build
5238

5339
- name: 部署到云服务器
5440
uses: appleboy/scp-action@v0.1.7

pnpm-lock.yaml

Lines changed: 74 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)