File tree Expand file tree Collapse file tree 4 files changed +20
-22
lines changed
Expand file tree Collapse file tree 4 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 11name : pre-commit
22
33on :
4- push :
5- branches : [main]
6- pull_request :
7- branches : [main]
4+ workflow_dispatch :
85
96jobs :
107 pre-commit :
Original file line number Diff line number Diff line change @@ -83,27 +83,17 @@ jobs:
8383 name : dist
8484 path : dist/
8585
86- approve :
87- name : Approval
88- needs : [checks, build]
89- runs-on : ubuntu-latest
90- environment : npm-publish
91- steps :
92- - name : Approved
93- run : echo "Publish approved"
94-
9586 publish :
9687 name : Publish
97- needs : approve
88+ needs : build
9889 runs-on : ubuntu-latest
90+ environment : prod
9991 permissions :
10092 contents : read
10193 id-token : write
10294 steps :
10395 - name : Checkout code
10496 uses : actions/checkout@v5
105- with :
106- fetch-depth : 0
10797
10898 - name : Setup Bun
10999 uses : oven-sh/setup-bun@v2
@@ -116,7 +106,10 @@ jobs:
116106 name : dist
117107 path : dist/
118108
119- - name : Publish
120- run : bun publish --access public
109+ - name : Set up npm auth
110+ run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
121111 env :
122112 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
113+
114+ - name : Publish
115+ run : bun publish --access public
Original file line number Diff line number Diff line change 11name : tests
22
33on :
4- push :
5- branches : [main]
6- pull_request :
7- branches : [main]
4+ workflow_dispatch :
85
96jobs :
107 tests :
Original file line number Diff line number Diff line change 99 "files" : [
1010 " dist"
1111 ],
12+ "repository" : {
13+ "type" : " git" ,
14+ "url" : " https://github.com/microdev1/vite-plugin-solid-undestructure.git"
15+ },
16+ "keywords" : [
17+ " vite" ,
18+ " solidjs" ,
19+ " babel" ,
20+ " plugin"
21+ ],
22+ "license" : " MIT" ,
1223 "scripts" : {
1324 "build" : " bun build src --minify --packages=external --outfile=dist/index.js && tsc --declaration --emitDeclarationOnly --outDir dist" ,
1425 "type" : " tsc --noEmit" ,
You can’t perform that action at this time.
0 commit comments