From 6a97ae181d9b2e0f607a0d2a9d00ff4559c45ebe Mon Sep 17 00:00:00 2001 From: Cheng Wang Date: Mon, 30 Oct 2023 09:45:36 +0800 Subject: [PATCH] update workflows --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/publish.yml | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bfc008..454ac1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,14 +4,20 @@ on: push: branches: - 'main' + pull_request: + branches: + - 'main' jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + - run: yarn set version stable - run: yarn - run: yarn workspace connect-miniprogram run build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9863c5d..b0728a8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,11 +12,14 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@vš - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 + cache: 'yarn' + cache-dependency-path: 'FrontEnd/yarn.lock' registry-url: https://registry.npmjs.org/ + - run: yarn set version stable - run: yarn - run: yarn workspace connect-miniprogram run build - run: yarn workspace connect-miniprogram publish