File tree Expand file tree Collapse file tree 5 files changed +69
-47
lines changed Expand file tree Collapse file tree 5 files changed +69
-47
lines changed Original file line number Diff line number Diff line change
1
+ name : Setup
2
+ description : ' Installs node, driver dependencies, and builds source'
3
+
4
+ steps :
5
+ - uses : actions/setup-node@v3
6
+ with :
7
+ node-version : ' lts/*'
8
+ cache : ' npm'
9
+ registry-url : ' https://registry.npmjs.org'
10
+ - run : npm install -g npm@latest
11
+ - run : npm clean-install
Original file line number Diff line number Diff line change @@ -2,15 +2,14 @@ name: Build and commit docs
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
7
7
permissions :
8
8
contents : write
9
9
pull-requests : write
10
10
11
11
jobs :
12
12
build :
13
-
14
13
# prevent subsequent commits from triggering the job multiple times
15
14
concurrency :
16
15
group : ci-${{ github.ref }}
@@ -19,20 +18,20 @@ jobs:
19
18
runs-on : ubuntu-latest
20
19
21
20
steps :
22
- - uses : actions/checkout@v3
23
- - name : Setup NodeJS
24
- uses : actions/setup-node@v3
25
- with :
26
- node-version : 16.x
27
- cache : ' npm'
28
- - name : Install Dependencies
29
- run : |
30
- npm ci
31
- sudo apt-get install hugo
32
- - name : Build Docs
33
- run : npm run build:docs -- --yes
34
- - name : Open Pull Request
35
- uses : peter-evans/create-pull-request@v4
36
- with :
37
- title : ' docs: generate docs from latest main'
38
- delete-branch : true
21
+ - uses : actions/checkout@v3
22
+ # TODO: replace with setup
23
+ - uses : actions/setup-node@v3
24
+ with :
25
+ node-version : ' lts/* '
26
+ cache : ' npm'
27
+ registry-url : ' https://registry.npmjs.org '
28
+ - run : npm install -g npm@latest
29
+ - run : npm clean-install
30
+ - run : sudo apt-get install hugo
31
+ - name : Build Docs
32
+ run : npm run build:docs -- --yes
33
+ - name : Open Pull Request
34
+ uses : peter-evans/create-pull-request@v4
35
+ with :
36
+ title : ' docs: generate docs from latest main'
37
+ delete-branch : true
Original file line number Diff line number Diff line change @@ -2,25 +2,24 @@ name: Check Dependencies
2
2
3
3
on :
4
4
push :
5
- branches : [ " main" ]
5
+ branches : [main]
6
6
pull_request :
7
- branches : [ " main" ]
7
+ branches : [main]
8
8
9
9
permissions :
10
10
contents : read
11
11
12
12
jobs :
13
13
build :
14
14
runs-on : ubuntu-latest
15
- strategy :
16
- matrix :
17
- node-version : [20.x]
18
15
steps :
19
- - uses : actions/checkout@v3
20
- - name : Use Node.js ${{ matrix.node-version }}
21
- uses : actions/setup-node@v3
22
- with :
23
- node-version : ${{ matrix.node-version }}
24
- cache : ' npm'
25
- - run : npm clean-install
26
- - run : npm run check:dependencies
16
+ - uses : actions/checkout@v3
17
+ # TODO: replace with setup
18
+ - uses : actions/setup-node@v3
19
+ with :
20
+ node-version : ' lts/*'
21
+ cache : ' npm'
22
+ registry-url : ' https://registry.npmjs.org'
23
+ - run : npm install -g npm@latest
24
+ - run : npm clean-install
25
+ - run : npm run check:dependencies
Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
alphaVersion :
7
- description : ' The semver version string. MUST end in -alpha.# '
7
+ description : ' Enter alpha version'
8
8
required : true
9
9
type : string
10
- wetRun :
11
- description : ' If true, will publish to npm'
12
- required : true
13
- type : boolean
14
10
15
11
name : release-alpha
16
12
17
13
jobs :
18
- release-nightly :
14
+ release-alpha :
19
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ id-token : write
20
18
steps :
21
- - run : |
22
- [[ "${{ inputs.alphaVersion }}" =~ '-alpha(\.(0|[1-9][0-9]+))?$' ]] || { echo "Invalid alphaVersion string" ; exit 1; }
23
- [[ "${{ inputs.wetRun }}" == "true" || "${{ inputs.wetRun }}" == "false" ]] || { echo "boolean wetRun must be provided" ; exit 1; }
24
- shell: bash
25
- - run : |
26
- echo "${{ inputs.alphaVersion }}"
27
- echo "${{ inputs.wetRun }}"
28
- shell: bash
19
+ - shell : bash
20
+ run : |
21
+ ALPHA_SEMVER_REGEXP="-alpha(\.(0|[1-9][0-9]+))?$"
22
+
23
+ if ! [[ "${{ inputs.alphaVersion }}" =~ $ALPHA_SEMVER_REGEXP ]]; then
24
+ echo "Invalid alphaVersion string"
25
+ exit 1
26
+ fi
27
+ - uses : actions/checkout@v3
28
+ # TODO: replace with setup
29
+ - uses : actions/setup-node@v3
30
+ with :
31
+ node-version : ' lts/*'
32
+ cache : ' npm'
33
+ registry-url : ' https://registry.npmjs.org'
34
+ - run : npm install -g npm@latest
35
+ - run : npm clean-install
36
+ - run : npm version "${{ inputs.alphaVersion }}" --git-tag-version=false
37
+ - run : npm publish --provenance --tag=alpha
38
+ env :
39
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -20,11 +20,13 @@ jobs:
20
20
id-token : write
21
21
steps :
22
22
- uses : actions/checkout@v3
23
+ # TODO: replace with setup
23
24
- uses : actions/setup-node@v3
24
25
with :
25
26
node-version : ' lts/*'
27
+ cache : ' npm'
26
28
registry-url : ' https://registry.npmjs.org'
27
- - run : npm install -g npm
29
+ - run : npm install -g npm@latest
28
30
- run : npm clean-install
29
31
- id : build_nightly
30
32
run : npm run build:nightly
You can’t perform that action at this time.
0 commit comments