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 6
6
- main
7
7
pull_request :
8
8
jobs :
9
- prettier :
9
+ check-style :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- 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
34
14
- uses : actions/setup-node@v4
35
15
with :
36
16
node-version-file : package.json
37
17
cache : " npm"
38
18
- 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:
10
10
environment : Production
11
11
steps :
12
12
- 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
17
14
- uses : actions/setup-node@v4
18
15
with :
19
16
node-version-file : package.json
20
17
registry-url : " https://registry.npmjs.org"
21
18
cache : " npm"
22
- - name : Install dependencies
19
+ - name : Build package
23
20
run : |
24
21
npm ci
25
- - env :
22
+ npm run build
23
+ - name : Publish to NPM
24
+ run : npm publish
25
+ env :
26
26
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
27
+ - name : Publish Github release
27
28
run : |
28
- npm publish
29
- - run : |
30
29
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