File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -15,39 +15,13 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
timeout-minutes : 45
17
17
18
- strategy :
19
- matrix :
20
- node-types-version : [16.11, current] # run tests on 16.11 while CodeQL Action v2 is still supported
21
-
22
18
steps :
23
19
- name : Checkout
24
20
uses : actions/checkout@v4
25
21
26
22
- name : Lint
27
23
run : npm run-script lint
28
24
29
- - name : Update version of @types/node
30
- if : matrix.node-types-version != 'current'
31
- env :
32
- NODE_TYPES_VERSION : ${{ matrix.node-types-version }}
33
- run : |
34
- # Export `NODE_TYPES_VERSION` so it's available to jq
35
- export NODE_TYPES_VERSION="${NODE_TYPES_VERSION}"
36
- contents=$(jq '.devDependencies."@types/node" = env.NODE_TYPES_VERSION' package.json)
37
- echo "${contents}" > package.json
38
- # Usually we run `npm install` on macOS to ensure that we pick up macOS-only dependencies.
39
- # However we're not checking in the updated lockfile here, so it's fine to run
40
- # `npm install` on Linux.
41
- npm install
42
-
43
- if [ ! -z "$(git status --porcelain)" ]; then
44
- git config --global user.email "[email protected] "
45
- git config --global user.name "github-actions[bot]"
46
- # The period in `git add --all .` ensures that we stage deleted files too.
47
- git add --all .
48
- git commit -m "Use @types/node=${NODE_TYPES_VERSION}"
49
- fi
50
-
51
25
- name : Check generated JS
52
26
run : .github/workflows/script/check-js.sh
53
27
You can’t perform that action at this time.
0 commit comments