File tree 5 files changed +82
-36
lines changed
5 files changed +82
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ test :
10
+ uses : ./.github/workflows/test.yml
11
+
12
+ release :
13
+ name : Release
14
+ runs-on : ubuntu-latest
15
+ needs : test
16
+ environment : npm
17
+ permissions :
18
+ id-token : write # for CFA and npm provenance
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
+ with :
23
+ persist-credentials : false
24
+ - name : Setup Node.js
25
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
26
+ with :
27
+ node-version : 20.x
28
+ cache : ' yarn'
29
+ - name : Install
30
+ run : yarn install --frozen-lockfile
31
+ - uses : continuousauth/action@c32f05c950d4e6f4abd8d1d8a46269525e2dbf55 # v1.0.3
32
+ with :
33
+ project-id : ${{ secrets.CFA_PROJECT_ID }}
34
+ secret : ${{ secrets.CFA_SECRET }}
35
+ npm-token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ schedule :
8
+ - cron : ' 0 22 * * 3'
9
+ workflow_call :
10
+
11
+ permissions :
12
+ contents : read
13
+
14
+ jobs :
15
+ test :
16
+ name : Test
17
+ strategy :
18
+ matrix :
19
+ node-version :
20
+ - ' 22.9'
21
+ - ' 20.11'
22
+ os :
23
+ - macos-latest
24
+ - ubuntu-latest
25
+ - windows-latest
26
+ runs-on : " ${{ matrix.os }}"
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30
+ - name : Setup Node.js
31
+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
32
+ with :
33
+ node-version : " ${{ matrix.node-version }}"
34
+ cache : ' yarn'
35
+ - name : Install
36
+ run : yarn install --frozen-lockfile
37
+ - name : Build
38
+ run : yarn build
39
+ - name : Lint
40
+ run : yarn prettier:check
41
+ - name : Test
42
+ run : yarn test
Original file line number Diff line number Diff line change 2
2
3
3
This module uses Electron's [ JSON API documentation] ( https://github.com/electron/docs-parser ) to produce a TypeScript definition file for the Electron API.
4
4
5
- [ ![ CircleCI ] ( https://dl.circleci. com/status-badge/img/gh/ electron/typescript-definitions/tree/main. svg?style=shield )] ( https://dl.circleci. com/status-badge/redirect/gh/ electron/typescript-definitions/tree/main )
5
+ [ ![ Test ] ( https://github. com/electron/typescript-definitions/actions/workflows/test.yml/badge. svg )] ( https://github. com/electron/typescript-definitions/actions/workflows/test.yml )
6
6
[ ![ npm version] ( http://img.shields.io/npm/v/@electron/typescript-definitions.svg )] ( https://npmjs.org/package/@electron/typescript-definitions )
7
7
8
8
## Installation
@@ -33,7 +33,7 @@ import { generateDefinitions } from '@electron/typescript-definitions'
33
33
const apiPath = ' ./vendor/electron/docs/api.json'
34
34
35
35
const definitionLines = generateDefinitions ({ electronApi: loadJSON (apiPath) })
36
- // definitionLines will be an strin representation of the definition file
36
+ // definitionLines will be an string representation of the definition file
37
37
```
38
38
39
39
## License
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://www.samuelattard.com"
25
25
},
26
26
"license" : " MIT" ,
27
+ "publishConfig" : {
28
+ "provenance" : true
29
+ },
27
30
"devDependencies" : {
28
31
"@electron/docs-parser" : " ^2.0.0" ,
29
32
"@types/debug" : " ^4.1.12" ,
You can’t perform that action at this time.
0 commit comments