File tree Expand file tree Collapse file tree 11 files changed +50
-214
lines changed Expand file tree Collapse file tree 11 files changed +50
-214
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : merge
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ workflow_dispatch :
7
+
8
+ concurrency : deploy
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ deploy :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - run : git clone --depth=1 "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
18
+ - run : npm ci
19
+ - run : npm run build
20
+ - uses : MithrilJS/infra/deploy@main
21
+ with :
22
+ type : gh-pages
23
+ token : ${{ secrets.DEPLOY_TOKEN }}
24
+ root_dir : ${{ github.workspace }}/dist
Original file line number Diff line number Diff line change 1
- name : Ping triage on issue create
1
+ name : Notify triage on issue create
2
2
on :
3
3
issues :
4
4
types : [opened]
5
+ pull_request :
6
+ types : [opened]
5
7
permissions :
6
8
issues : write
7
9
repository-projects : write
8
10
jobs :
9
- add_triage :
10
- runs-on : ubuntu-latest
11
- steps :
12
- - run : gh issue edit "$ISSUE_URL" --add-project 'Triage/bugs'
13
- env :
14
- ISSUE_URL : ${{ github.event.issue.url }}
15
- GITHUB_TOKEN : ${{ github.token }}
16
-
17
- notify :
18
- uses : ./.github/workflows/_post-comment.yml
19
- with :
20
- url : ${{ github.event.issue.url }}
21
- message : ' @MithrilJS/triage Please take a look.'
11
+ reject :
12
+ uses : MithrilJS/infra/.github/workflows/notify-triage.yml@main
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Deny pushing to `gh-pages`
2
+ on :
3
+ pull_request :
4
+ types : [opened]
5
+ branches : [gh-pages]
6
+ permissions :
7
+ issues : write
8
+ jobs :
9
+ reject :
10
+ uses : MithrilJS/infra/.github/workflows/reject-pr.yml@main
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,46 +2,23 @@ name: test
2
2
3
3
on :
4
4
pull_request :
5
- branches : [ next ]
5
+ branches : [main]
6
+ push :
7
+ branches : [main]
6
8
workflow_dispatch :
7
9
workflow_call :
8
10
9
11
permissions :
10
- actions : write
11
12
contents : read
12
13
13
14
# This uses actions/checkout instead of `git clone` directly since it's way
14
15
# easier than parsing everything out.
15
16
16
17
jobs :
17
- lint-docs :
18
- uses : ./.github/workflows/_npm-task.yml
19
- with :
20
- task : lint:docs
21
- continue-on-error : true
22
-
23
- lint-js :
24
- uses : ./.github/workflows/_npm-task.yml
25
- with :
26
- task : lint:js
27
-
28
- build-js :
29
- needs : lint-js
30
- uses : ./.github/workflows/_npm-task.yml
31
- with :
32
- task : build
33
-
34
- test-js :
35
- needs : build-js
36
- strategy :
37
- matrix :
38
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
39
- node-version :
40
- - 16
41
- - 18
42
- - 20
43
- - 22
44
- uses : ./.github/workflows/_npm-task.yml
45
- with :
46
- node-version : ${{ matrix.node-version }}
47
- task : test:js
18
+ test :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - run : git clone --depth=1 "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
22
+ - run : npm ci
23
+ - run : npm run lint
24
+ - run : npm run build
You can’t perform that action at this time.
0 commit comments