File tree Expand file tree Collapse file tree 2 files changed +12
-34
lines changed Expand file tree Collapse file tree 2 files changed +12
-34
lines changed Original file line number Diff line number Diff line change 66 - main
77 pull_request :
88jobs :
9- prettier :
9+ check-style :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
13- with :
14- config : ${{ vars.PERMISSIONS_CONFIG }}
15- - name : Checkout Repository
16- uses : actions/checkout@v2
17- - uses : actions/setup-node@v4
18- with :
19- node-version-file : package.json
20- cache : " npm"
21- - name : Install dependencies
22- run : |
23- npm ci
24- - run : |
25- npm run check:format
26- eslint :
27- runs-on : ubuntu-latest
28- steps :
29- - uses : GitHubSecurityLab/actions-permissions/monitor@v1
30- with :
31- config : ${{ vars.PERMISSIONS_CONFIG }}
32- - name : Checkout Repository
33- uses : actions/checkout@v4
13+ - uses : actions/checkout@v4
3414 - uses : actions/setup-node@v4
3515 with :
3616 node-version-file : package.json
3717 cache : " npm"
3818 - name : Install dependencies
39- run : |
40- npm ci
41- - run : |
42- npm run check:lint
19+ run : npm ci
20+ - name : Run style check
21+ run : npm run check
Original file line number Diff line number Diff line change @@ -10,21 +10,20 @@ jobs:
1010 environment : Production
1111 steps :
1212 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
13- with :
14- config : ${{ vars.PERMISSIONS_CONFIG }}
15- - name : Checkout Repository
16- uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1714 - uses : actions/setup-node@v4
1815 with :
1916 node-version-file : package.json
2017 registry-url : " https://registry.npmjs.org"
2118 cache : " npm"
22- - name : Install dependencies
19+ - name : Build package
2320 run : |
2421 npm ci
25- - env :
22+ npm run build
23+ - name : Publish to NPM
24+ run : npm publish
25+ env :
2626 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
27+ - name : Publish Github release
2728 run : |
28- npm publish
29- - run : |
3029 gh release create ${{ github.ref }} --title "${{ github.ref }}" --notes "Release ${{ github.ref }}" --generate-notes
You can’t perform that action at this time.
0 commit comments