From 1ebbf6dd6ac53af07c42920386f738fc1afaf61a Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Fri, 27 Oct 2023 12:02:58 +0800 Subject: [PATCH] ci: fix CI script --- .github/workflows/semantic-release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 13e1753..791e82a 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -8,9 +8,9 @@ jobs: matrix: node-version: [^14, ^16, ^18] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: yarn install @@ -29,16 +29,16 @@ jobs: needs: [test] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: cache: npm node-version: 18 # Install yarn - run: npm install -g yarn - + - name: Run semantic-release if: github.repository == 'casdoor/casdoor-nodejs-sdk' && github.event_name == 'push' run: |