Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ jobs:
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
uses: ./.github/workflows/release.yml
with:
tag_name: ${{ needs.release-please.outputs.tag_name }}
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Release
on:
workflow_dispatch:
workflow_call:
inputs:
tag_name:
description: Release tag name (e.g., v1.0.0-beta.1)
type: string
default: ''

jobs:
publish:
Expand All @@ -28,5 +33,16 @@ jobs:
- name: Build
run: pnpm build

- name: Determine npm tag
id: npm-tag
env:
TAG_NAME: ${{ inputs.tag_name }}
run: |
if [[ "$TAG_NAME" == *"-"* ]]; then
echo "tag=beta" >> "$GITHUB_OUTPUT"
else
echo "tag=latest" >> "$GITHUB_OUTPUT"
fi

- name: Publish
run: npm publish --tag latest --access public --provenance
run: npm publish --tag ${{ steps.npm-tag.outputs.tag }} --access public --provenance
4 changes: 3 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"release-type": "node",
"bump-minor-pre-major": true,
"changelog-path": "CHANGELOG.md",
"versioning": "default"
"versioning": "default",
"prerelease": true,
"prerelease-type": "beta"
}
}
}
Loading