Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Dec 21, 2024
1 parent 1a005d1 commit 45b24fb
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,23 @@ jobs:
version: 9
- name: Install dependencies
run: pnpm install
- name: Bump version to prerelease
if: ${{ ! steps.release.outputs.release_created }}
run: npm version prerelease
- uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ ! steps.release.outputs.release_created }}
with:
commit_message: bump beta version
- name: Create beta zip
- name: Release as beta
if: ${{ ! steps.release.outputs.release_created }}
run: |
# update package version
git_hash=$(git rev-parse --short "$GITHUB_SHA")
NEXT_VERSION=$(echo $(node -p "require('./package.json').version") | awk -F. -v OFS=. '{$NF += 1 ; print}')
BETA_VERSION="${NEXT_VERSION}-${git_hash}"
echo "New beta version for NPM: ${BETA_VERSION}"
pnpm version ${BETA_VERSION}
# push changes
git config --global user.name github-actions
git config --global user.email github-actions@github.com
git add .
git commit -m "bump beta version"
git push
# now create zip file
pnpm run build
echo ${BETA_VERSION} > dist/version.txt
Expand Down

0 comments on commit 45b24fb

Please sign in to comment.