File tree 7 files changed +1355
-947
lines changed
7 files changed +1355
-947
lines changed Original file line number Diff line number Diff line change 6
6
- ' *'
7
7
tags :
8
8
- ' v*'
9
+ pull_request :
10
+ branches :
11
+ - ' *'
12
+
13
+ env :
14
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
9
15
10
16
jobs :
11
- build :
17
+ test :
12
18
runs-on : ubuntu-latest
13
19
steps :
14
- - uses : actions/checkout@v2
15
- with :
16
- ref : master
20
+ - name : checkout
21
+ uses : actions/checkout@v4
17
22
18
- - uses : volta-cli/action@v1
23
+ - name : authorise pnpm
24
+ run : |
25
+ pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
26
+ corepack enable
19
27
20
- - uses : pnpm/action-setup@v2.0.1
21
- with :
22
- version : latest
23
- run_install : true
28
+ - name : install dependencies
29
+ run : pnpm install
24
30
25
- - run : pnpm lint
31
+ - name : test
32
+ run : pnpm test
26
33
27
34
publish-npm :
28
35
if : startsWith(github.ref, 'refs/tags/v')
29
- needs : build
36
+ needs : test
30
37
runs-on : ubuntu-latest
31
38
steps :
32
- - uses : actions/checkout@v2
33
- with :
34
- ref : master
35
-
36
- - uses : volta-cli/action@v1
37
-
38
- - uses : pnpm/action-setup@v2.0.1
39
- with :
40
- version : latest
41
- run_install : true
42
-
43
- - run : pnpm build
44
- - run : |
45
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
46
- pnpm package
47
- pnpm publish ./package
39
+ - name : checkout
40
+ uses : actions/checkout@v4
41
+
42
+ - name : authorise pnpm
43
+ run : |
44
+ pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
45
+ corepack enable
46
+
47
+ - name : install dependencies
48
+ run : pnpm install
49
+
50
+ - name : publish
51
+ run : pnpm publish --access public
Original file line number Diff line number Diff line change 1
1
engine-strict = true
2
+ use-node-version = 22.11.0
Original file line number Diff line number Diff line change 4
4
"scripts" : {
5
5
"dev" : " vite dev --port 3030" ,
6
6
"build" : " vite build" ,
7
- "package" : " svelte-package" ,
8
7
"preview" : " vite preview" ,
9
8
"lint" : " eslint ."
10
9
},
11
10
"devDependencies" : {
12
- "@beyonk/eslint-config" : " ^6 .0.0 " ,
13
- "@sveltejs/kit" : " ^1.2.9 " ,
14
- "@sveltejs/package " : " ^1 .0.2 " ,
15
- "eslint" : " ^7.31 .0" ,
16
- "eslint-plugin-svelte3 " : " ^3.2 .0" ,
17
- "svelte" : " ^3.55.1 " ,
18
- "svelte2tsx" : " ^0.6.0 " ,
19
- "typescript" : " ^4.9.4 " ,
20
- "vite" : " ^4.0.4 "
11
+ "@beyonk/eslint-config" : " ^8 .0.2 " ,
12
+ "@sveltejs/kit" : " ^2.8.0 " ,
13
+ "@sveltejs/vite-plugin-svelte " : " ^4 .0.0 " ,
14
+ "eslint" : " ^9.14 .0" ,
15
+ "eslint-plugin-svelte " : " ^2.46 .0" ,
16
+ "svelte" : " ^5.1.14 " ,
17
+ "svelte2tsx" : " ^0.7.23 " ,
18
+ "typescript" : " ^5.6.3 " ,
19
+ "vite" : " ^5.4.11 "
21
20
},
22
21
"peerDependencies" : {
23
- "svelte" : " >=3 .0.0"
22
+ "svelte" : " >=4 .0.0"
24
23
},
25
24
"exports" : {
26
25
"." : " ./components.js"
27
26
},
28
27
"types" : " ./components.d.ts" ,
29
28
"type" : " module" ,
30
- "volta" : {
31
- "node" : " 20.11.1"
32
- }
29
+ "packageManager" : " pnpm@8.15.7"
33
30
}
You can’t perform that action at this time.
0 commit comments