20
20
repository_default_branch : ${{ steps.metadata.outputs.repository_default_branch }}
21
21
22
22
steps :
23
- - uses : actions/checkout@v3.0.2
23
+ - uses : actions/checkout@v3.2.0
24
24
25
25
- id : metadata
26
26
uses :
ahmadnassri/[email protected]
31
31
runs-on : ubuntu-latest
32
32
33
33
steps :
34
- - uses : actions/checkout@v3.0.2
34
+ - uses : actions/checkout@v3.2.0
35
35
36
- -
uses :
ahmadnassri/[email protected] .3
36
+ -
uses :
ahmadnassri/[email protected] .4
37
37
with :
38
38
config : .github/linters/.commit-lint.yml
39
39
43
43
runs-on : ubuntu-latest
44
44
45
45
steps :
46
- - uses : actions/checkout@v3.0.2
46
+ - uses : actions/checkout@v3.2.0
47
47
48
- - uses : oxsecurity/megalinter/flavors/javascript@v6
48
+ - uses : oxsecurity/megalinter/flavors/javascript@v6.15.0
49
49
env :
50
50
GITHUB_TOKEN : ${{ github.token }}
51
51
MEGALINTER_CONFIG : .github/linters/.mega-linter.yml
66
66
runs-on : ubuntu-latest
67
67
68
68
steps :
69
- - uses : actions/checkout@v3.0.2
69
+ - uses : actions/checkout@v3.2.0
70
70
71
- - uses : actions/setup-node@v3.4 .1
71
+ - uses : actions/setup-node@v3.5 .1
72
72
with :
73
73
node-version : latest
74
74
@@ -83,11 +83,11 @@ jobs:
83
83
runs-on : ubuntu-latest
84
84
85
85
steps :
86
- - uses : actions/checkout@v3.0.2
86
+ - uses : actions/checkout@v3.2.0
87
87
with :
88
88
submodules : true
89
89
90
- - uses : actions/setup-node@v3.4 .1
90
+ - uses : actions/setup-node@v3.5 .1
91
91
with :
92
92
registry-url : https://npm.pkg.github.com
93
93
node-version : latest
@@ -122,12 +122,22 @@ jobs:
122
122
version-minor : ${{ steps.release.outputs.release-version-minor }}
123
123
124
124
steps :
125
- - uses : actions/checkout@v3.0.2
125
+ - uses : actions/checkout@v3.2.0
126
126
with :
127
127
submodules : true
128
128
129
+
130
+ with :
131
+ registry-url : https://npm.pkg.github.com
132
+ node-version : latest
133
+ cache : npm
134
+
135
+ - run : npm ci
136
+ env :
137
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
138
+
129
139
- id : release
130
- uses : ahmadnassri/action-semantic-release@v2
140
+ uses : ahmadnassri/action-semantic-release@v2.1.11
131
141
with :
132
142
config : ${{ github.workspace }}/.semantic.json
133
143
env :
@@ -143,15 +153,15 @@ jobs:
143
153
strategy :
144
154
matrix :
145
155
release : [ "v${{ needs.release.outputs.version }}" ]
146
- alias :
156
+ alias :
147
157
- " v${{ needs.release.outputs.version-major }}"
148
158
- " v${{ needs.release.outputs.version-major }}.${{ needs.release.outputs.version-minor }}"
149
159
150
160
steps :
151
161
- uses : actions/github-script@v6
152
162
with :
153
163
script : |
154
- const { object: { sha } } = github.rest.git.getRef({ ...context.repo, ref: 'tags/${{ matrix.release }}' })
164
+ const { data: { object: { sha } } } = await github.rest.git.getRef({ ...context.repo, ref: 'tags/${{ matrix.release }}' })
155
165
await github.rest.git.deleteRef({ ...context.repo, ref: 'tags/${{ matrix.alias }}' }).catch(() => {})
156
166
await github.rest.git.createRef({ ...context.repo, ref: 'refs/tags/${{ matrix.alias }}', sha })
157
167
@@ -172,8 +182,8 @@ jobs:
172
182
runs-on : ubuntu-latest
173
183
174
184
steps :
175
- - uses : actions/checkout@v3.0.2
185
+ - uses : actions/checkout@v3.2.0
176
186
177
- - uses : ahmadnassri/action-template-repository-sync@v2
187
+ - uses : ahmadnassri/action-template-repository-sync@v2.3.0
178
188
with :
179
189
github-token : ${{ secrets.GH_TOKEN }}
0 commit comments