Skip to content

Commit

Permalink
ci: fix release job error env
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcherGu committed Mar 26, 2024
1 parent 3399aed commit 9eef85b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -56,14 +56,22 @@ jobs:
run: pnpm test

release:
runs-on: ubuntu-latest
needs: [test]
if: '!contains(github.event.head_commit.message, ''skip-release'') && !contains(github.event.head_commit.message, ''skip-ci'') && github.event_name != ''pull_request'''

strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]

runs-on: ${{ matrix.os }}
needs: [test]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}

- name: Cache pnpm store
uses: actions/cache@v4
env:
Expand Down

0 comments on commit 9eef85b

Please sign in to comment.