diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 28a0d732d4a4..67e701db8f4c 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -1,5 +1,10 @@ name: Release nightly +# only one per github sha can be run +concurrency: + group: ${{ github.sha }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8f7892bac3d..b7b460c79e1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Release +# only one can tun at a time +concurrency: cd-release + on: push: branches: diff --git a/package.json b/package.json index 811578e6f7d8..f6fc29787890 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "benchmark": "lerna run benchmark", "cli": "node --trace-deprecation --max-old-space-size=8192 ./packages/cli/bin/lodestar", "publish": "lerna publish from-package --yes --no-verify-access", - "publish-nightly": "lerna publish --yes --no-verify-access --canary --dist-tag next", + "publish-nightly": "lerna publish --yes --no-verify-access --canary --preid next.$(git rev-parse HEAD) --dist-tag next", "release": "lerna version --no-push --sign-git-commit", "postrelease": "git tag -d $(git describe --abbrev=0)" },