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
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:
Comment thread
coderabbitai[bot] marked this conversation as resolved.

permissions:
contents: write
Expand All @@ -29,8 +30,22 @@ jobs:
- name: Extract version from tag
id: version
run: |
if [[ "$GITHUB_REF_NAME" != v* ]]; then
echo "This workflow must be run against a version tag (e.g. v1.0.0)."
exit 1
fi

VERSION=${GITHUB_REF_NAME#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT

# Prerelease versions (e.g. 1.0.0-beta.1) publish under the "beta" dist-tag so they
# never become "latest" and require an explicit `npm install pkg@beta` to pick up.
if [[ "$VERSION" == *-* ]]; then
echo "tag=beta" >> $GITHUB_OUTPUT
else
echo "tag=latest" >> $GITHUB_OUTPUT
fi

echo "Releasing version: $VERSION"

- name: Install dependencies
Expand All @@ -54,7 +69,7 @@ jobs:
run: npm install -g npm@latest --no-audit

- name: Publish to npm
run: npm publish --access public
run: npm publish --access public --tag ${{ steps.version.outputs.tag }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v3
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [0.20.0-beta.4](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.3...v0.20.0-beta.4) (2026-07-02)


### Bug Fixes
Comment thread
sergak01 marked this conversation as resolved.

* **PP-3449:** guard release.yml against non-tag workflow_dispatch runs ([a7f463f](https://github.com/mi-examples/pp-dev/commit/a7f463f7c0e75f3305b2dfab560ee9a6c315343d))

# [0.20.0-beta.3](https://github.com/mi-examples/pp-dev/compare/v0.20.0-beta.2...v0.20.0-beta.3) (2026-07-01)


Expand Down
Loading