Skip to content

Commit f3eb2f9

Browse files
committed
add publish setting for github actions
1 parent 672f18e commit f3eb2f9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup Node
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@v6
2222
with:
2323
registry-url: 'https://registry.npmjs.org'
24+
node-version: 24
2425

2526
- name: Install dependencies
2627
run: npm install
@@ -29,4 +30,4 @@ jobs:
2930
run: npm run build
3031

3132
- name: Publish package to npm
32-
run: npm publish
33+
run: npm publish --provenance

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vvplot",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"license": "MIT",
55
"files": [
66
"dist"
@@ -15,8 +15,6 @@
1515
"imports": {
1616
"#base/*": "./src/*"
1717
},
18-
"homepage": "https://fan-ix.github.io/vvplot/",
19-
"repository": "https://github.com/Fan-iX/vvplot/",
2018
"exports": {
2119
".": "./dist/index.js",
2220
"./components": "./dist/components.js",
@@ -26,6 +24,11 @@
2624
"./label": "./dist/label.js",
2725
"./style.css": "./dist/style.css"
2826
},
27+
"homepage": "https://fan-ix.github.io/vvplot/",
28+
"repository": "https://github.com/Fan-iX/vvplot/",
29+
"publishConfig": {
30+
"access": "public"
31+
},
2932
"dependencies": {
3033
"@vueuse/core": "^13.7.0",
3134
"d3": "^7.9.0",

0 commit comments

Comments
 (0)