From 8816ab93febfe94b976d97451148150e0dfcc123 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Sat, 22 Jan 2022 08:48:57 -0700 Subject: [PATCH] fix: update npm-dev.yaml (#4781) --- .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 b466c15a..db64df84 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 }}