Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .github/actions/install-dep/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
nodeVersion:
required: false
type: string
default: '14'
default: '18'

runs:
using: 'composite'
Expand All @@ -18,18 +18,5 @@ runs:
- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "dir=$(pnpm store path)" >> ${GITHUB_OUTPUT}

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- run: pnpm install
shell: bash
6 changes: 2 additions & 4 deletions .github/workflows/tag-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ jobs:
runs-on: ubuntu-latest
if: github.event.ref_type == 'tag'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dep
with:
nodeVersion: '14.6.0'
- run: npm run build
- run: pnpm build
shell: bash
- name: release miniprogram
uses: LeeJim/setup-miniprogram@main
Expand Down
Loading