Skip to content

Commit 0517d21

Browse files
authored
v5 (#186)
* Rewrite to support the v4 API * Bump major version * Remove rename suffix * Misc PR cleanup * Switch GH runner agent * Update README * Final CI adjustments
1 parent 5c48f6f commit 0517d21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+9613
-21396
lines changed

.github/workflows/ci_checks.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: "16"
13+
node-version: "18"
1414
- run: npm ci
15-
- run: npm test
15+
- run: npm run test -- --coverage --run
1616

1717
run_linting:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
23-
node-version: "16"
23+
node-version: "18"
2424
- run: npm ci
2525
- run: npm run lint
26+
2627
- name: Verify package.json version matches version.ts (genversion --check-only)
2728
run: ./verify_version.sh
2829

@@ -32,6 +33,6 @@ jobs:
3233
- uses: actions/checkout@v4
3334
- uses: actions/setup-node@v4
3435
with:
35-
node-version: "16"
36+
node-version: "18"
3637
- run: npm ci
3738
- run: npm run compile

.github/workflows/publish_release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: "16"
26+
node-version: "18"
2727

2828
- run: npm ci
2929
- run: npm run build
@@ -42,3 +42,9 @@ jobs:
4242
text: "@withabound/node-sdk@${{steps.npm-publish.outputs.version}} has been published."
4343
env:
4444
INCOMING_WEBHOOK_URL: ${{secrets.SUCCESS_DEPLOYMENT_PRODUCT_URL}}
45+
46+
- name: Smoke test NPM release
47+
run: npm run test:smoke
48+
env:
49+
ABOUND_SMOKE_TEST_APP_ID: ${{secrets.ABOUND_SMOKE_TEST_APP_ID}}
50+
ABOUND_SMOKE_TEST_APP_SECRET: ${{secrets.ABOUND_SMOKE_TEST_APP_SECRET}}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
2+
coverage/
23
dist/
4+
tmp/
35

46
.DS_Store

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx genversion --es6 --semi --double src/util/version.ts
5-
git add src/util/version.ts
4+
npx genversion --es6 --semi --double src/version.ts
5+
git add src/version.ts
66

77
npx lint-staged

0 commit comments

Comments
 (0)