Skip to content

Commit 8558db3

Browse files
committed
Fix npm pkg
1 parent a4c7ec1 commit 8558db3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
- name: Build the project
3030
run: npm run build
3131

32+
- name: Log in to npm
33+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
34+
3235
- name: Publish to npm
3336
if: startsWith(github.ref, 'refs/tags/')
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3637
run: npm publish --access public

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
"shader",
88
"component"
99
],
10-
"version": "1.0.1",
10+
"version": "1.0.2",
1111
"main": "dist/core/index.js",
1212
"module": "dist/core/index.esm.js",
1313
"publishConfig": {
1414
"registry": "https://www.npmjs.com/package/simple-shader-component"
1515
},
16-
"repository": "https://github.com/svey-xyz/simple-shader-component",
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/svey-xyz/simple-shader-component.git"
19+
},
1720
"files": [
1821
"dist/",
1922
"README.md",

0 commit comments

Comments
 (0)