From d5bd3965cb588e5905308491ff467db2b115e795 Mon Sep 17 00:00:00 2001 From: isaackps Date: Tue, 21 Mar 2023 13:55:57 +0800 Subject: [PATCH] fix: update ci yml --- .github/workflows/ci.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f9dcbe..8628726 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: test: - name: Test + name: Test & Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -30,7 +30,7 @@ jobs: - name: Test run: npm run test build: - name: Build + name: Build & Release needs: test runs-on: ubuntu-latest steps: @@ -49,24 +49,6 @@ jobs: run: npm ci - name: Build run: npm run build - release: - name: Release - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 14.x - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install Packages - run: npm ci - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}