Skip to content

Commit

Permalink
update prerelease workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Oct 29, 2024
1 parent 4721305 commit 19698e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: beta
ref: ${{ github.ref_name }}
fetch-depth: 0

- name: Configure git user
Expand All @@ -26,6 +26,6 @@ jobs:
- name: Publish npm packages
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}
node common/scripts/install-run-rush.js publish --apply --version-policy npm --partial-prerelease --publish --tag ${{ github.ref_name }} --prerelease-name ${{ github.ref_name }}.${commit_hash::6}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 19698e3

Please sign in to comment.