Skip to content

Commit c2d542e

Browse files
author
Christopher J Baker
committed
add workflow verify-and-publish
1 parent 78939cc commit c2d542e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Verify and Publish
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
inputs:
7+
segment:
8+
description: "The version segment to increment: major, minor, patch, premajor, preminor, prepatch, or prerelease."
9+
required: true
10+
preId:
11+
description: "Appended to the pre-release segment. (default: \"\")"
12+
13+
jobs:
14+
verify:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Node.js environment
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version-file: ".nvmrc"
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Typecheck
30+
run: npm run typecheck
31+
- name: ESLint
32+
run: npm run eslint
33+
- name: Prettier
34+
run: npm run prettier
35+
- name: depcheck
36+
run: npm run depcheck
37+
38+
- name: Test
39+
run: npm run buildtests && npm run test
40+
41+
- name: Build
42+
run: npm run build

0 commit comments

Comments
 (0)