Skip to content

Commit 3a03e4b

Browse files
authored
Update npm-publish.yml
1 parent e9d1e88 commit 3a03e4b

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
name: Node.js Package
55

6-
on:
7-
release:
8-
types: [created]
6+
on: push
97

108
jobs:
119
build:
@@ -15,8 +13,13 @@ jobs:
1513
- uses: actions/setup-node@v1
1614
with:
1715
node-version: 12
16+
- name: Set Git Environment and Update package number
17+
run: |
18+
git config --global user.name 'GIT Package Updater'
19+
git config --global user.email 'razorRun@users.noreply.github.com'
20+
npm version patch
21+
git push
1822
- run: npm ci
19-
- run: npm test
2023

2124
publish-npm:
2225
needs: build
@@ -31,17 +34,3 @@ jobs:
3134
- run: npm publish
3235
env:
3336
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34-
35-
publish-gpr:
36-
needs: build
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-node@v1
41-
with:
42-
node-version: 12
43-
registry-url: https://npm.pkg.github.com/
44-
- run: npm ci
45-
- run: npm publish
46-
env:
47-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)