mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
chore: update workflows (#946)
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: googleapis/release-please-action@v4
|
||||
- uses: googleapis/release-please-action@v5
|
||||
id: release
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -47,5 +47,13 @@ jobs:
|
||||
- run: npm test
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
|
||||
- run: npm publish --provenance
|
||||
- name: Publish to npm
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: |
|
||||
if [[ "$GITHUB_REF_NAME" == "main" ]]; then
|
||||
npm publish --provenance
|
||||
else
|
||||
npm publish --provenance --tag "v${GITHUB_REF_NAME%%.x}"
|
||||
fi
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.UUID_NPM_RELEASE_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user