Skip to content

Commit c6740b0

Browse files
committedAug 31, 2023
ci: publish
1 parent e2c3c81 commit c6740b0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
${{ runner.os }}-node-
3030
- run: npm i
3131
- run: npm run compile
32-
- run: npm publish
32+
- run: npm run publish
3333
env:
3434
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"prepare": "npm run compile",
3939
"pretest": "npm run compile",
4040
"test": "jest --testPathIgnorePatterns \"build/\" --runInBand --verbose",
41-
"posttest": "npm run lint"
41+
"posttest": "npm run lint",
42+
"publish": "npm version patch --force && npm publish"
4243
},
4344
"devDependencies": {
4445
"@babel/plugin-proposal-class-properties": "^7.18.6",

0 commit comments

Comments
 (0)
Please sign in to comment.