Skip to content

Commit 12c461a

Browse files
Merge pull request #7 from volatilization/feature/add-github-publish-npm
update github action to publication releases
2 parents 714c1ad + 494c1ae commit 12c461a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 16
14+
node-version: 21
1515
registry-url: https://registry.npmjs.org/
16-
- run: npm run publish
16+
- run: npm run prepareToPublish
1717
env:
1818
RELEASE: ${{github.event.release.name}}
19+
- run: npm publish
20+
env:
1921
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Proxy classes for creating a http server",
66
"keywords": ["web", "web-server", "http", "http-server", "oop"],
77
"scripts": {
8-
"publish": "node dist/prepareToPublish.js && npm publsih"
8+
"prepareToPublish": "node dist/prepareToPublish.js"
99
},
1010
"author": {
1111
"name": "volatilization",

0 commit comments

Comments
 (0)