From 5263738c0459ebdb7113c489b21db4635e8fffa2 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 2 May 2022 08:36:05 -0700 Subject: [PATCH] Cancel in progress npm master publishes if multuple in flight (#5306) --- .github/workflows/publish-master-npm.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-master-npm.yml b/.github/workflows/publish-master-npm.yml index 25e434c0f4..caccbe9d25 100644 --- a/.github/workflows/publish-master-npm.yml +++ b/.github/workflows/publish-master-npm.yml @@ -3,6 +3,9 @@ on: push: branches: - master +concurrency: + group: publish-master-npm + cancel-in-progress: true jobs: publish: name: Publish NPM Package `master` @@ -25,11 +28,11 @@ jobs: - name: Generate NPM package run: | - make build-npm + make build-npm - name: publish new release run: | - make publish-npm + make publish-npm env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_RELEASE_TAG: master