File tree Expand file tree Collapse file tree 4 files changed +42
-15
lines changed Expand file tree Collapse file tree 4 files changed +42
-15
lines changed Original file line number Diff line number Diff line change @@ -9,22 +9,35 @@ permissions:
9
9
contents : read
10
10
11
11
jobs :
12
- build :
12
+ build-and-publish :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Harden Runner
16
16
uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
17
17
with :
18
18
egress-policy : audit
19
19
20
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21
- # Setup .npmrc file to publish to npm
22
- - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
20
+ - name : Checkout repo
21
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
22
+
23
+ - name : Setup Node.js # Setup .npmrc file to publish to npm
24
+ uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
23
25
with :
24
26
node-version : ' 22.x'
25
27
registry-url : ' https://registry.npmjs.org'
26
- - name : publish sample package
27
- run : npm install --include peer && npm publish --access=public
28
+
29
+ - name : Install dependencies
30
+ working-directory : plugins/git-proxy-plugin-samples
31
+ run : npm ci
32
+
33
+ - name : Build TypeScript
34
+ working-directory : plugins/git-proxy-plugin-samples
35
+ run : npm run build
36
+
37
+ - name : Install peers and publish
28
38
working-directory : plugins/git-proxy-plugin-samples
39
+ run : |
40
+ npm install --include=peer
41
+ npm publish --access=public
29
42
env :
30
43
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# This file required to override .gitignore when publishing to npm
2
+ src /
3
+ tests /
4
+ * .test.ts
5
+
6
+ tsconfig.json
7
+ jest.config.js
8
+ .eslintrc.js
9
+ .prettierrc
10
+
2
11
website /
3
- plugins /
4
- experimental /
5
- cypress /
12
+ plugins /
Original file line number Diff line number Diff line change 2
2
"name" : " @finos/git-proxy" ,
3
3
"version" : " 2.0.0-rc.1" ,
4
4
"description" : " Deploy custom push protections and policies on top of Git." ,
5
+ "main" : " dist/index.js" ,
6
+ "types" : " dist/index.d.ts" ,
5
7
"scripts" : {
6
8
"cli" : " node ./packages/git-proxy-cli/index.js" ,
7
9
"client" : " vite --config vite.config.ts" ,
Original file line number Diff line number Diff line change 7
7
"jsx" : " react-jsx" ,
8
8
"moduleResolution" : " Node" ,
9
9
"strict" : true ,
10
- "noEmit" : true ,
11
- "declaration" : true ,
12
10
"skipLibCheck" : true ,
13
- "isolatedModules" : true ,
11
+ "isolatedModules" : false ,
14
12
"module" : " CommonJS" ,
15
13
"esModuleInterop" : true ,
16
14
"allowSyntheticDefaultImports" : true ,
17
- "resolveJsonModule" : true
15
+ "resolveJsonModule" : true ,
16
+
17
+ "declaration" : true ,
18
+ "declarationMap" : true ,
19
+ "outDir" : " ./dist" ,
20
+ "rootDir" : " ./src" ,
21
+ "noEmit" : false ,
22
+ "types" : [" node" ]
18
23
},
19
- "include" : [" . " ],
20
- "exclude" : [" experimental/** " , " plugins/** " ]
24
+ "include" : [" src " ],
25
+ "exclude" : [" node_modules " , " dist " , " **/*.test.ts " ]
21
26
}
You can’t perform that action at this time.
0 commit comments