Skip to content

Commit

Permalink
Bump package.json version
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 29, 2024
1 parent 85faa69 commit 43b02c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
filters: |
react-email:
- 'packages/react-email/**'
- '!packages/react-email/package.json'
cli:
- 'packages/cli/**'
- '!packages/cli/package.json'
publish-cli:
name: Publish CLI
Expand Down Expand Up @@ -62,6 +64,13 @@ jobs:
- name: Update version
working-directory: packages/cli
run: npm version ${{ steps.get_version.outputs.new_version }} --no-git-tag-version
- name: Commit package.json changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add packages/cli/package.json
git commit -m "chore: bump languine to v${{ steps.get_version.outputs.new_version }}"
git push
- name: Create Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -75,7 +84,7 @@ jobs:
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-react-email:
name: Publish React Email
if: needs.test.outputs.react-email == 'true'
Expand Down Expand Up @@ -104,6 +113,13 @@ jobs:
- name: Update version
working-directory: packages/react-email
run: npm version ${{ steps.get_version.outputs.new_version }} --no-git-tag-version
- name: Commit package.json changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add packages/react-email/package.json
git commit -m "chore: bump @languine/react-email to v${{ steps.get_version.outputs.new_version }}"
git push
- name: Create Release
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion packages/react-email/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@languine/react-email",
"version": "0.2.0",
"version": "0.2.1",
"files": ["dist", "README.md"],
"main": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 43b02c6

Please sign in to comment.