Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcheng committed Oct 30, 2023
1 parent e39da5b commit 6a97ae1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@
- 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
Expand Down

0 comments on commit 6a97ae1

Please sign in to comment.