Skip to content

Commit

Permalink
chore: update prerelease workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Jan 9, 2025
1 parent 3fb957c commit 3ed24ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: prerelease
on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: beta
ref: ${{ github.ref_name }}
fetch-depth: 0

- name: Configure git user
Expand All @@ -26,6 +30,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 3ed24ae

Please sign in to comment.