Skip to content

Commit 5a98032

Browse files
fix: update module version inside the #publish workflow
1 parent f5c4b92 commit 5a98032

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ jobs:
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444
- name: update the module version
45-
run: npm version minor
45+
run: |
46+
npm version minor
47+
git add package.json
48+
git commit -m "fix: update module version"
49+
git push
4650
env:
4751
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
4852
- name: publish the module to the node package manager #2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "array-split-base",
3-
"version": "1.0.2",
3+
"version": "1.2.0",
44
"main": "dist/index.js",
55
"license": "MIT",
66
"icon": "src/assets/icon.png",

0 commit comments

Comments
 (0)