From 97f301f04e1dc44f8d7f76eef706b547792ff0bd Mon Sep 17 00:00:00 2001 From: belopash Date: Wed, 24 Jul 2024 00:23:01 +0500 Subject: [PATCH] chore: fix prerelease action --- .github/workflows/prerelease.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index fbf0a6cce..261322de4 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -24,6 +24,8 @@ jobs: run: node common/scripts/install-run-rush.js build - name: Publish npm packages - run: node common/scripts/install-run-rush.js publish --apply --version-policy npm --partial-prerelease --publish --tag beta --prerelease-name beta.${GITHUB_SHA::6} + run: | + commit_hash=$(git rev-parse HEAD) + node common/scripts/install-run-rush.js publish --apply --version-policy npm --partial-prerelease --publish --tag beta --prerelease-name beta.${commit_hash::6} env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} \ No newline at end of file