From d93d51398c1290346cda375b52145f155573f955 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Fri, 25 Aug 2023 00:36:57 -0500 Subject: [PATCH] Update workflows --- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) 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