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 40a9567 commit 68bd51a
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,16 @@ jobs:
version: 9
- name: Install dependencies
run: pnpm install
- name: Release as beta
- 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
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}"
npm 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 68bd51a

Please sign in to comment.