From 95938d6e70e8d2ae93cb569de1bdd55bf5278cad Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 21 Jan 2022 16:42:51 -0700 Subject: [PATCH] fix: update npm-dev.yaml --- .github/workflows/npm-dev.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-dev.yaml b/.github/workflows/npm-dev.yaml index b466c15a77da..db64df8433bb 100644 --- a/.github/workflows/npm-dev.yaml +++ b/.github/workflows/npm-dev.yaml @@ -24,4 +24,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TAG: "beta" - PR_NUMBER_AND_COMMIT_SHA: ${{ github.event.number }}-${{ github.event.pull_request.head.sha }} + # Since this only runs on a merge into main, we can't use github.event.number + # so we instead use the word "beta" and the PR merge commit SHA + PR_NUMBER_AND_COMMIT_SHA: beta-${{ github.sha }}