Skip to content

Commit a0a0937

Browse files
fix(ci): use the correct variables (#3907)
* fix(ci): use the correct variables * 更新 action.yml * 更新 tag-push.yml * 更新 tag-push.yml --------- Co-authored-by: liweijie0812 <[email protected]>
1 parent 14ea554 commit a0a0937

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.github/actions/install-dep/action.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
nodeVersion:
77
required: false
88
type: string
9-
default: '14'
9+
default: '18'
1010

1111
runs:
1212
using: 'composite'
@@ -18,18 +18,5 @@ runs:
1818
- name: Setup pnpm
1919
uses: pnpm/action-setup@v4
2020

21-
- name: Get pnpm store directory
22-
id: pnpm-cache
23-
shell: bash
24-
run: echo "dir=$(pnpm store path)" >> ${GITHUB_OUTPUT}
25-
26-
- uses: actions/cache@v4
27-
name: Setup pnpm cache
28-
with:
29-
path: ${{ steps.pnpm-cache.outputs.dir }}
30-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
31-
restore-keys: |
32-
${{ runner.os }}-pnpm-store-
33-
3421
- run: pnpm install
3522
shell: bash

.github/workflows/tag-push.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
if: github.event.ref_type == 'tag'
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- uses: ./.github/actions/install-dep
12-
with:
13-
nodeVersion: '14.6.0'
14-
- run: npm run build
12+
- run: pnpm build
1513
shell: bash
1614
- name: release miniprogram
1715
uses: LeeJim/setup-miniprogram@main

0 commit comments

Comments
 (0)