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
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
- name: Build
run: pnpm run build

- name: Determine Version
id: determine_version
- name: Set Version from Branch
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Get the latest version tag
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
LATEST_VERSION=${LATEST_TAG#v} # Remove 'v' prefix

# Append '-beta' to the version
VERSION="${LATEST_VERSION}-beta"
pnpm version $VERSION --no-git-tag-version

- name: Set Version in Package
run: pnpm version ${{ env.VERSION }} --no-git-tag-version
Expand All @@ -42,6 +46,6 @@ jobs:
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc

- name: Publish with pnpm
run: pnpm publish --access public --tag latest --no-git-checks
run: pnpm publish --access public --tag beta --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}