This repository was archived by the owner on Jun 2, 2023. It is now read-only.
File tree 2 files changed +42
-4
lines changed
2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ with :
14
+ fetch-depth : 0
15
+
16
+ - name : Install pnpm
17
+ uses : pnpm/action-setup@v2
18
+
19
+ - name : Set node
20
+ uses : actions/setup-node@v3
21
+ with :
22
+ node-version : 16.x
23
+ cache : pnpm
24
+ registry-url : " https://registry.npmjs.org"
25
+
26
+ - run : npx changelogithub
27
+ continue-on-error : true
28
+ env :
29
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
30
+
31
+ - name : Install Dependencies
32
+ run : pnpm i
33
+
34
+ - name : Publish to NPM
35
+ run : pnpm publish --access public --no-git-checks
36
+ env :
37
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 18
18
"." : {
19
19
"types" : " ./dist/index.d.ts" ,
20
20
"require" : " ./dist/index.cjs" ,
21
- "import" : " ./dist/index.mjs "
21
+ "import" : " ./dist/index.js "
22
22
}
23
23
},
24
- "main" : " ./dist/index.mjs " ,
25
- "module" : " ./dist/index.mjs " ,
24
+ "main" : " ./dist/index.js " ,
25
+ "module" : " ./dist/index.js " ,
26
26
"types" : " ./dist/index.d.ts" ,
27
+ "bin" : " ./dist/cli.js" ,
27
28
"typesVersions" : {
28
29
"*" : {
29
30
"*" : [
39
40
"build" : " tsup" ,
40
41
"dev" : " tsup --watch" ,
41
42
"prepublishOnly" : " pnpm build" ,
42
- "release" : " bumpp && npm publish " ,
43
+ "release" : " bumpp" ,
43
44
"start" : " esno src/index.ts" ,
44
45
"test" : " vitest"
45
46
},
You can’t perform that action at this time.
0 commit comments