Skip to content

Commit 6ffccf6

Browse files
committed
add automatic prerelase flagging
1 parent 099b3d0 commit 6ffccf6

2 files changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,27 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10+
checks:
11+
runs-on: ubuntu-22.04
12+
timeout-minutes: 10
13+
strategy:
14+
matrix:
15+
node_version: [16, 18, 20]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: aboutbits/github-actions-node/setup-and-install@v2
19+
with:
20+
node-version: ${{ matrix.node_version }}
21+
- name: Lint
22+
run: npm run lint
23+
shell: bash
24+
- name: Typecheck
25+
run: npm run typecheck
26+
shell: bash
27+
1028
test:
1129
runs-on: ubuntu-22.04
12-
timeout-minutes: 15
30+
timeout-minutes: 10
1331
strategy:
1432
matrix:
1533
node_version: [16, 18, 20]
@@ -18,6 +36,6 @@ jobs:
1836
- uses: aboutbits/github-actions-node/setup-and-install@v2
1937
with:
2038
node-version: ${{ matrix.node_version }}
21-
- run: npm run lint
22-
- run: npm run typecheck
23-
- run: npm run test
39+
- name: Test
40+
run: npm run test
41+
shell: bash

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
owner: context.repo.owner,
2222
repo: context.repo.repo,
2323
tag_name: '${{ github.ref }}',
24-
name: 'Release ${{ github.ref_name }}'
24+
name: 'Release ${{ github.ref_name }}',
25+
prerelease: '${{ github.ref_name }}'.includes('-')
2526
})
2627
- uses: aboutbits/github-actions-node/setup-and-install@v2
2728
with:

0 commit comments

Comments
 (0)