File tree 1 file changed +6
-18
lines changed
1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change 1
1
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2
2
name : CI
3
-
4
3
on :
5
4
push :
6
5
branches :
7
6
- main
8
7
pull_request :
9
-
10
8
jobs :
11
9
lint-test :
12
10
name : 🚀 Lint and test
13
11
runs-on : ubuntu-latest
14
12
timeout-minutes : 5
15
- strategy :
16
- matrix :
17
- node : [ 18, 20 ]
18
-
19
13
steps :
20
- - name : 👍 Checkout
21
- uses : actions/checkout@v4
22
-
23
- - name : 🐢 Setup node.js
24
- uses : actions/setup-node@v4
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-node@v4
25
16
with :
26
- node-version : ${{ matrix.node }}
27
- cache : ' npm'
28
-
17
+ node-version : lts/*
18
+ cache : npm
29
19
- name : 📥 Install dependencies
30
20
run : npm install
31
-
32
21
- name : 💅 Lint code style
33
22
run : npm run lint
34
-
35
23
- name : ✅ Run tests
36
24
run : npm run test
37
-
38
25
publish :
39
26
if : github.ref == 'refs/heads/main' && github.event_name == 'push'
40
27
name : 📦 Publish
41
28
runs-on : ubuntu-latest
42
29
needs : lint-test
30
+ timeout-minutes : 5
43
31
permissions :
44
32
# Needed by googleapis/release-please-action@v4
45
33
contents : write
46
34
pull-requests : write
47
35
# Needed by `npm publish --provenance`
48
36
id-token : write
49
-
50
37
steps :
51
38
- name : 🍄 Bump package version, create GitHub release, and update changelog
52
39
uses : googleapis/release-please-action@v4
57
44
if : ${{ steps.release.outputs.release_created }}
58
45
with :
59
46
node-version : lts/*
47
+ cache : npm
60
48
registry-url : https://registry.npmjs.org
61
49
- name : 🚀 Publish to npm
62
50
if : ${{ steps.release.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments