@@ -26,35 +26,42 @@ jobs:
26
26
fail-fast : false
27
27
matrix :
28
28
os : [ubuntu-latest]
29
- node : [16]
30
29
31
30
steps :
32
- - name : Check out repository (push)
33
- if : ${{ github.event_name == 'push' || github.event_name == 'pull_request_target ' || github.event_name == 'pull_request ' && github.actor != 'dependabot[bot]' }}
31
+ - name : Check out repository ✨
32
+ if : ${{ github.event_name == 'push' || github.event_name == 'pull_request ' || github.event_name == 'pull_request_target ' && github.actor != 'dependabot[bot]' }}
34
33
uses : actions/checkout@v3
35
34
36
- - name : Check out repository (pull_request_target )
35
+ - name : Check out repository 🎉 (dependabot )
37
36
if : ${{ github.event_name == 'pull_request_target' }}
38
37
uses : actions/checkout@v3
39
38
with :
40
39
ref : ${{ github.event.pull_request.head.sha }}
41
40
42
41
- name : Setup node env 📦
43
- uses : actions/setup-node@v3
42
+ uses : actions/setup-node@v3.4.1
44
43
with :
45
- node-version : ${{ matrix.node }}
44
+ node-version-file : ' .nvmrc'
45
+ registry-url : https://registry.npmjs.org
46
46
check-latest : true
47
- registry-url : ' https://registry.npmjs.org'
48
47
cache : ' npm'
49
48
50
- - name : Upgrade npm ✨
51
- run : npm i -g npm@latest
52
-
53
49
- name : Install dependencies 🚀
54
- run : npm ci --prefer-offline --no-audit --no-optional
50
+ run : npm ci --prefer-offline --no-audit
55
51
56
52
- name : Run linter(s) 👀
57
- run : npm run lint
53
+ uses : wearerequired/lint-action@v2
54
+ with :
55
+ github_token : ${{ secrets.GITHUB_TOKEN }}
56
+ continue_on_error : true
57
+ git_name : github-actions[bot]
58
+ git_email : github-actions[bot]@users.noreply.github.com
59
+ auto_fix : false
60
+ eslint : true
61
+ eslint_extensions : js,ts,svelte
62
+ prettier : true
63
+ prettier_extensions : js,ts,svelte
64
+ neutral_check_on_warning : true
58
65
59
- - name : Check build 🎉
60
- run : npm run build
66
+ - name : Run build 🏁
67
+ run : npm run build
0 commit comments