Skip to content

Commit efa821c

Browse files
committed
try to fix npm publish
1 parent 02fc51c commit efa821c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626
run: npm run build
2727
- name: Publish to npm
2828
if: github.ref == 'refs/heads/main'
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
run: npm publish
29+
uses: JS-DevTools/npm-publish@v3
30+
with:
31+
token: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "php-like server but with javascript",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/L3P3/rtjscomp"
7+
"url": "git+https://github.com/L3P3/rtjscomp.git"
88
},
99
"bugs": {
1010
"url": "https://github.com/L3P3/rtjscomp/issues"
@@ -18,9 +18,7 @@
1818
"start": "./rtjscomp.js",
1919
"build": "./build.js"
2020
},
21-
"bin": {
22-
"rtjscomp": "./rtjscomp.js"
23-
},
21+
"bin": "./rtjscomp.js",
2422
"keywords": [
2523
"http",
2624
"javascript",

0 commit comments

Comments
 (0)