diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 11879c3e2..d7a19bd5e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} cache: 'npm' - name: Install dependencies @@ -57,7 +57,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} registry-url: 'https://npm.pkg.github.com' cache: 'npm' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 869180d8c..17b7f207e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: authorize: name: Authorize @@ -35,7 +39,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} cache: 'npm' - name: Install dependencies