File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package to npmjs
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *'
6
+
7
+ jobs :
8
+ publish :
9
+ defaults :
10
+ run :
11
+ working-directory : " ./reader/ts"
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-node@v4
16
+ with :
17
+ node-version : ' 22.x'
18
+ registry-url : ' https://registry.npmjs.org'
19
+ - run : npm version from-git --git-tag-version=false
20
+ - run : npm ci
21
+ - run : npm run build
22
+ - run : npm publish
23
+ env :
24
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " code0-definition-reader" ,
2
+ "name" : " @ code0-tech/ definition-reader" ,
3
3
"version" : " 0.0.1" ,
4
4
"description" : " Reader for Code0-Definitions" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"type" : " module" ,
7
8
"scripts" : {
8
- "build" : " tsc" ,
9
- "test" : " echo \" Error: no test specified\" && exit 1"
9
+ "build" : " tsc"
10
10
},
11
11
"author" : " " ,
12
12
"license" : " " ,
13
13
"devDependencies" : {
14
14
"@code0-tech/sagittarius-graphql-types" : " ^0.0.0-f91466f0f343596ad170e7e5c5316a70b072594d" ,
15
15
"@types/node" : " ^24.1.0" ,
16
16
"typescript" : " ^5.8.3"
17
+ },
18
+ "repository" : {
19
+ "type" : " git" ,
20
+ "url" : " git+https://github.com/code0-tech/code0-definitions.git"
21
+ },
22
+ "files" : [
23
+ " src" ,
24
+ " index.d.ts" ,
25
+ " index.js" ,
26
+ " package.json"
27
+ ],
28
+ "publishConfig" : {
29
+ "access" : " public"
17
30
}
18
31
}
You can’t perform that action at this time.
0 commit comments