File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,26 @@ jobs:
13
13
with :
14
14
node-version : 16
15
15
registry-url : https://registry.npmjs.org
16
- - name : Unit Testing
17
- run : npm i && npm run test
18
-
19
16
- name : Update version
20
17
run : |
21
18
git config --global user.name "mayank1513"
22
19
git config --global user.email "[email protected] "
23
20
git fetch
24
21
git checkout main
25
22
npm version patch
26
- npm -v
27
- git push origin main
28
- - run : npm run publish-package
23
+ - name : Build and Test
24
+ run : npm i && npm run build && npm run test
25
+ - name : Publish to npm
26
+ run : npm run publish-package
29
27
env :
30
28
NODE_AUTH_TOKEN : ${{secrets.NPM_AUTH_TOKEN}}
31
29
32
30
- uses : actions/setup-node@v3
33
31
with :
34
32
registry-url : https://npm.pkg.github.com/
35
- - run : npm run publish-gpr
33
+ - name : Publish to GitHub Public Repository
34
+ run : npm run publish-gpr
36
35
env :
37
36
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
37
+ - name : push version bump back to repo
38
+ run : git push origin main
Original file line number Diff line number Diff line change 11
11
"scripts" : {
12
12
"build" : " tsc && node createPackageJSON.js" ,
13
13
"test" : " vitest run" ,
14
- "publish-package" : " npm run build && cp README.md dist/README.md && cd dist && npm publish && cd .." ,
14
+ "publish-package" : " cp README.md dist/README.md && cd dist && npm publish && cd .." ,
15
15
"publish-gpr" : " node prepGPR.js && cd dist && npm publish"
16
16
},
17
17
"keywords" : [
You can’t perform that action at this time.
0 commit comments