Skip to content

Commit

Permalink
actions: add version bump commit
Browse files Browse the repository at this point in the history
  • Loading branch information
damianricobelli committed Aug 16, 2024
1 parent 9509591 commit 4db9ed7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ jobs:
- name: Set up npm token
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Bump version with Changesets
run: pnpm version-packages

- name: Commit the version bump
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "ci: bump version [skip ci]"
git push origin main
- name: Publish to npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"files": ["dist"],
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand All @@ -15,8 +17,6 @@
"types": "./dist/index.d.ts"
}
},
"sideEffects": false,
"files": ["dist"],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
Expand Down

0 comments on commit 4db9ed7

Please sign in to comment.