Skip to content

Commit

Permalink
fix: attempt gh
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Dec 26, 2024
1 parent 4bfb892 commit 0cb7c91
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,22 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Increment version
- name: Update package.json version
run: |
cd packages/plugin
pnpm version ${{ github.event.inputs.increment }} --no-git-tag-version
NEW_VERSION=$(npm version ${{ github.event.inputs.increment }} --no-git-tag-version)
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
cd ../..
git add packages/plugin/package.json
- name: Update manifest.json version
run: |
cd packages/plugin
VERSION_NUMBER=${NEW_VERSION#v}
jq --arg version "$VERSION_NUMBER" '.version = $version' manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
git add manifest.json
cd ../..
git commit -m "chore(release): bump version to ${NEW_VERSION}"
- name: Build plugin
run: pnpm --filter "./packages/plugin" build
Expand Down

0 comments on commit 0cb7c91

Please sign in to comment.