File tree 11 files changed +1786
-1973
lines changed
11 files changed +1786
-1973
lines changed Original file line number Diff line number Diff line change 1
- ARG VARIANT="16 "
1
+ ARG VARIANT="18 "
2
2
3
3
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
4
4
Original file line number Diff line number Diff line change 3
3
"build" : {
4
4
"dockerfile" : " Dockerfile" ,
5
5
"args" : {
6
- "VARIANT" : " 16 "
6
+ "VARIANT" : " 18 "
7
7
}
8
8
},
9
9
"extensions" : [
Original file line number Diff line number Diff line change 6
6
node_version :
7
7
description : The Node.js version.
8
8
required : false
9
- default : ' 16 '
9
+ default : ' 18 '
10
10
registry_url :
11
11
description : The Node.js package registry URL.
12
12
required : false
16
16
using : composite
17
17
steps :
18
18
- name : Setup Node.js
19
- uses : actions/setup-node@v2
19
+ uses : actions/setup-node@v3
20
20
with :
21
21
cache : npm
22
22
node-version : ${{ inputs.node_version }}
Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
fix :
15
- runs-on : ubuntu-20.04
15
+ runs-on : ubuntu-latest
16
16
timeout-minutes : 30
17
17
steps :
18
18
- name : Checkout
19
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v3
20
20
with :
21
21
ref : ${{ github.head_ref }}
22
22
token : ${{ secrets.GH_TOKEN }}
23
23
- name : Import GPG key
24
- uses : crazy-max/ghaction-import-gpg@v4
24
+ uses : crazy-max/ghaction-import-gpg@v5
25
25
with :
26
26
git_user_signingkey : true
27
27
git_commit_gpgsign : true
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
test :
11
- runs-on : ubuntu-20.04
11
+ runs-on : ubuntu-latest
12
12
timeout-minutes : 30
13
13
strategy :
14
14
matrix :
15
15
node :
16
16
- ' 14'
17
17
- ' 16'
18
+ - ' 18'
18
19
steps :
19
20
- name : Checkout
20
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
21
22
- name : Setup
22
23
uses : ./.github/actions/setup
23
24
with :
24
25
node_version : ${{ matrix.node }}
25
26
- name : Test
26
27
run : npm test
27
28
lint :
28
- runs-on : ubuntu-20.04
29
+ runs-on : ubuntu-latest
29
30
timeout-minutes : 30
30
31
strategy :
31
32
matrix :
32
33
node :
33
34
- ' 14'
34
35
- ' 16'
36
+ - ' 18'
35
37
steps :
36
38
- name : Checkout
37
- uses : actions/checkout@v2
39
+ uses : actions/checkout@v3
38
40
- name : Setup
39
41
uses : ./.github/actions/setup
40
42
with :
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
npm :
11
- runs-on : ubuntu-20.04
11
+ runs-on : ubuntu-latest
12
12
timeout-minutes : 30
13
13
steps :
14
14
- name : Checkout
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v3
16
16
- name : Setup
17
17
uses : ./.github/actions/setup
18
18
- name : Publish
@@ -21,25 +21,13 @@ jobs:
21
21
access : public
22
22
token : ${{ secrets.NPM_TOKEN }}
23
23
docs :
24
- runs-on : ubuntu-20.04
24
+ runs-on : ubuntu-latest
25
25
timeout-minutes : 30
26
26
steps :
27
27
- name : Checkout
28
- uses : actions/checkout@v2
28
+ uses : actions/checkout@v3
29
29
with :
30
30
persist-credentials : false
31
- - name : Setup Git config
32
- env :
33
- GH_USER : ${{ secrets.GH_USER }}
34
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
35
- GIT_USER_NAME : ${{ secrets.GIT_USER_NAME }}
36
- GIT_USER_EMAIL : ${{ secrets.GIT_USER_EMAIL }}
37
- GIT_COMMITTER_EMAIL : ${{ secrets.GIT_USER_EMAIL }}
38
- run : |
39
- git remote set-url --push origin "https://${GH_USER}:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
40
- git config user.name "$GIT_USER_NAME"
41
- git config user.email "$GIT_USER_EMAIL"
42
- npm config set sign-git-tag true
43
31
- name : Import GPG key
44
32
uses : crazy-max/ghaction-import-gpg@v3
45
33
id : import_gpg
Original file line number Diff line number Diff line change 1
1
---
2
2
name : version
3
3
4
+ run-name : ${{ github.event.inputs.version }}${{ github.event.client_payload.version }}
5
+
4
6
on :
5
7
workflow_dispatch :
6
8
inputs :
12
14
13
15
jobs :
14
16
release :
15
- runs-on : ubuntu-20.04
17
+ runs-on : ubuntu-latest
16
18
timeout-minutes : 30
17
19
steps :
18
20
- name : Checkout
19
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
20
22
with :
21
- persist-credentials : false
22
- - name : Setup Git config
23
- env :
24
- GH_USER : ${{ secrets.GH_USER }}
25
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
26
- GIT_USER_NAME : ${{ secrets.GIT_USER_NAME }}
27
- GIT_USER_EMAIL : ${{ secrets.GIT_USER_EMAIL }}
28
- GIT_COMMITTER_EMAIL : ${{ secrets.GIT_USER_EMAIL }}
29
- run : |
30
- git remote set-url --push origin "https://${GH_USER}:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
31
- git config user.name "$GIT_USER_NAME"
32
- git config user.email "$GIT_USER_EMAIL"
23
+ token : ${{ secrets.GH_TOKEN }}
33
24
- name : Import GPG key
34
- uses : crazy-max/ghaction-import-gpg@v4
25
+ uses : crazy-max/ghaction-import-gpg@v5
35
26
with :
36
27
git_user_signingkey : true
37
28
git_commit_gpgsign : true
Original file line number Diff line number Diff line change 1
- lts/gallium
1
+ lts/hydrogen
Original file line number Diff line number Diff line change @@ -243,8 +243,7 @@ $ npm install
243
243
Use the [`npm version`][npm-version] command to release a new version.
244
244
This will push a new git tag which will trigger a GitHub action.
245
245
246
- Publishing may be triggered using on the web
247
- using a [workflow_dispatch on GitHub Actions].
246
+ Publishing may be triggered using a [workflow_dispatch on GitHub Actions].
248
247
249
248
[npm-version]: https://docs.npmjs.com/cli/version
250
249
[workflow_dispatch on GitHub Actions]: https://github.com/razor-x/blobpack/actions?query=workflow%3Aversion
@@ -256,7 +255,15 @@ _GitHub Actions should already be configured: this section is for reference only
256
255
The following repository secrets must be set on [GitHub Actions]:
257
256
258
257
- `NPM_TOKEN`: npm token for installing and publishing packages.
259
- - `GH_USER`: The GitHub user's username.
258
+
259
+ These must be set manually.
260
+
261
+ ### Secrets for Optional GitHub Actions
262
+
263
+ The version and format GitHub actions
264
+ require a user with write access to the repository.
265
+ Set these additional secrets to enable the action:
266
+
260
267
- `GH_TOKEN`: A personal access token for the user.
261
268
- `GIT_USER_NAME`: The GitHub user's real name.
262
269
- `GIT_USER_EMAIL`: The GitHub user's email.
You can’t perform that action at this time.
0 commit comments