From a03d1bb8ce69892f1cd3b47cb29e53abd22418c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bla=C5=A1ko?= Date: Wed, 2 Oct 2024 16:57:31 +0200 Subject: [PATCH] [#356] Fix workflow for auto-deleted branches Fix workflow when branches are auto-deleted after merge (i.e. configuration of github) --- .github/workflows/npm-publish-beta.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-beta.yml b/.github/workflows/npm-publish-beta.yml index 2f45f8d3..2d967a52 100644 --- a/.github/workflows/npm-publish-beta.yml +++ b/.github/workflows/npm-publish-beta.yml @@ -15,8 +15,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.merge_commit_sha }} - name: Get short SHA id: set_sha @@ -37,6 +36,7 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org + - run: npm ci - run: npm test - run: npm run build