File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to NPM
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' v[0-9]+.[0-9]+.[0-9]+*'
6
+ permissions : {}
7
+ jobs :
8
+ ci :
9
+ permissions :
10
+ contents : read # for actions/checkout
11
+ security-events : write # for codeql-action
12
+ uses : ./.github/workflows/ci.yml
13
+
14
+ npm-publish :
15
+ environment :
16
+ name : npm-publish
17
+ url : https://www.npmjs.com/package/graphql-faker/v/${{github.ref_name}}
18
+ needs : ci
19
+ permissions :
20
+ contents : read # for actions/checkout
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : Checkout repo
24
+ uses : actions/checkout@v3
25
+ with :
26
+ persist-credentials : false
27
+
28
+ - name : Setup Node.js
29
+ uses : actions/setup-node@v3
30
+ with :
31
+ cache : npm
32
+ node-version-file : ' .node-version'
33
+ # 'registry-url' is required for 'npm publish'
34
+ registry-url : ' https://registry.npmjs.org'
35
+
36
+ - uses : actions/download-artifact@v3
37
+ with :
38
+ name : npmDist
39
+ path : npmDist
40
+
41
+ - name : Publish package on NPM
42
+ run : npm publish ./npmDist
43
+ env :
44
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 21
21
"node" : " >= 18.12.0"
22
22
},
23
23
"scripts" : {
24
+ "preversion" : " npm ci --ignore-scripts && npm test" ,
24
25
"test" : " npm run lint && npm run check && npm run prettier:check && npm run check:spelling" ,
25
26
"lint" : " eslint --cache --max-warnings 0 ." ,
26
27
"check" : " tsc --noEmit" ,
Original file line number Diff line number Diff line change 1
- import * as React from 'react'
1
+ import * as React from 'react' ;
2
2
3
3
export const EditIcon = ( ) => (
4
4
< svg fill = "#FFFFFF" height = "24" viewBox = "0 0 24 24" width = "24" xmlns = "http://www.w3.org/2000/svg" >
You can’t perform that action at this time.
0 commit comments