Skip to content
Merged
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
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ jobs:
- run: npm install -g npm@latest # trusted publishing requires npm >= 11.5.1
- run: npm ci
- run: npm run lint && npm run typecheck && npm test && npm run build
- run: npm publish --provenance --access public
- name: Publish
run: |
VERSION="${GITHUB_REF_NAME#v}"
if [[ "$VERSION" == *-* ]]; then
# Prerelease (e.g. 7.0.0-alpha.1): do NOT tag as "latest"
npm publish --provenance --access public --tag next
else
npm publish --provenance --access public
fi
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
Loading