File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches :
6
7
- main
17
18
18
19
jobs :
19
20
test :
20
- runs-on : ubuntu-latest
21
+ name : Node ${{ matrix.node_version }} - On ${{ matrix.os }}
22
+ runs-on : ${{ matrix.os }}
23
+
24
+ strategy :
25
+ matrix :
26
+ os : [ ubuntu-latest, windows-latest, macos-latest ]
27
+
21
28
steps :
22
29
- name : Checkout
23
30
uses : actions/checkout@v3
27
34
28
35
with :
29
36
node-version : 16.x
37
+ cache : ' npm'
30
38
31
39
- uses : actions/cache@v3
32
40
with :
74
82
env :
75
83
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
76
84
with :
77
- node-version : 14 .x
85
+ node-version : 16 .x
78
86
registry-url : ' https://registry.npmjs.org'
79
87
80
88
- uses : actions/cache@v3
@@ -94,18 +102,14 @@ jobs:
94
102
run : |
95
103
npm publish --access public
96
104
97
- - name : Latest Changelog
98
- run : |
99
- diff --changed-group-format='%>' --unchanged-group-format='' <( git show HEAD~1:CHANGELOG.md ) CHANGELOG.md > CHANGELOG_LATEST.md || true
100
-
101
105
- name : Release
102
106
uses : actions/create-release@v1
103
107
env :
104
108
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
105
109
with :
106
110
tag_name : ${{ github.ref }}
107
111
release_name : Release ${{ github.ref }}
108
- body_path : CHANGELOG_LATEST .md
112
+ body_path : CHANGELOG .md
109
113
draft : false
110
114
prerelease : contains(github.ref, '-')
111
115
Original file line number Diff line number Diff line change 27
27
- name : Use Node
28
28
29
29
with :
30
- node-version : ${{ matrix.node-version }}
30
+ node-version : 16.x
31
31
32
32
- uses : actions/cache@v3
33
33
with :
You can’t perform that action at this time.
0 commit comments