@opengovsg/formsg-sdk 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +7 -7
- package/.github/workflows/publish.yml +25 -0
- package/CHANGELOG.md +18 -5
- package/package.json +1 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: CI
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
pull_request:
|
|
5
5
|
types: [opened, reopened]
|
|
6
6
|
jobs:
|
|
7
7
|
build:
|
|
8
|
-
name:
|
|
8
|
+
name: Build
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- uses: actions/checkout@v2
|
|
12
12
|
- name: Use Node.js
|
|
13
|
-
uses: actions/setup-node@
|
|
13
|
+
uses: actions/setup-node@v4
|
|
14
14
|
with:
|
|
15
|
-
node-version:
|
|
15
|
+
node-version: 22
|
|
16
16
|
- name: Cache Node.js modules
|
|
17
17
|
uses: actions/cache@v4
|
|
18
18
|
with:
|
|
@@ -26,14 +26,14 @@ jobs:
|
|
|
26
26
|
- run: npx lockfile-lint --type npm --path package-lock.json --validate-https --allowed-hosts npm
|
|
27
27
|
- run: npm run build
|
|
28
28
|
test:
|
|
29
|
-
name:
|
|
29
|
+
name: Test
|
|
30
30
|
runs-on: ubuntu-latest
|
|
31
31
|
steps:
|
|
32
32
|
- uses: actions/checkout@v2
|
|
33
33
|
- name: Use Node.js
|
|
34
|
-
uses: actions/setup-node@
|
|
34
|
+
uses: actions/setup-node@v4
|
|
35
35
|
with:
|
|
36
|
-
node-version:
|
|
36
|
+
node-version: 22
|
|
37
37
|
- name: Cache Node.js modules
|
|
38
38
|
uses: actions/cache@v4
|
|
39
39
|
with:
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- release
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
name: Publish to NPM
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write # Required for OIDC
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
# Setup .npmrc file to publish to NPM
|
|
17
|
+
- uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: lts/*
|
|
20
|
+
registry-url: 'https://registry.npmjs.org'
|
|
21
|
+
cache: npm
|
|
22
|
+
- name: Update npm
|
|
23
|
+
run: npm install -g npm@latest # Ensure npm 11.5.1 or later is installed for OIDC support
|
|
24
|
+
- run: npm ci
|
|
25
|
+
- run: npm publish
|
package/CHANGELOG.md
CHANGED
|
@@ -4,17 +4,30 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [v0.
|
|
7
|
+
#### [v0.16.1](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.16.0...v0.16.1)
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- remove version tagging in publish script [`#131`](https://github.com/opengovsg/formsg-javascript-sdk/pull/131)
|
|
10
|
+
- build: merge release to develop [`#130`](https://github.com/opengovsg/formsg-javascript-sdk/pull/130)
|
|
11
|
+
- Release v0.16.0 [`#129`](https://github.com/opengovsg/formsg-javascript-sdk/pull/129)
|
|
10
12
|
|
|
13
|
+
#### [v0.16.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.15.0...v0.16.0)
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
> 3 November 2025
|
|
13
16
|
|
|
14
|
-
-
|
|
17
|
+
- build: merge release to develop [`#125`](https://github.com/opengovsg/formsg-javascript-sdk/pull/125)
|
|
18
|
+
- fix: publish workflow [`#124`](https://github.com/opengovsg/formsg-javascript-sdk/pull/124)
|
|
19
|
+
- release: v0.15.0 [`#123`](https://github.com/opengovsg/formsg-javascript-sdk/pull/123)
|
|
20
|
+
- add publish script for OIDC support [`#122`](https://github.com/opengovsg/formsg-javascript-sdk/pull/122)
|
|
21
|
+
- build: release v0.9.0 - webhook attachments, linting, GitHub Actions [`#71`](https://github.com/opengovsg/formsg-javascript-sdk/pull/71)
|
|
22
|
+
- build: Release 0.8.4 - TypeScript refactor [`#57`](https://github.com/opengovsg/formsg-javascript-sdk/pull/57)
|
|
23
|
+
- resync version number [`03bab2a`](https://github.com/opengovsg/formsg-javascript-sdk/commit/03bab2a77bab200aa45fee7464839e2be2ab8e7d)
|
|
24
|
+
|
|
25
|
+
#### [v0.15.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.13.0...v0.15.0)
|
|
15
26
|
|
|
16
|
-
>
|
|
27
|
+
> 30 September 2025
|
|
17
28
|
|
|
29
|
+
- feat: add verified content to v3 [`#121`](https://github.com/opengovsg/formsg-javascript-sdk/pull/121)
|
|
30
|
+
- chore: remove build status from README.md [`#120`](https://github.com/opengovsg/formsg-javascript-sdk/pull/120)
|
|
18
31
|
- feat: add signature to supported form fields [`#118`](https://github.com/opengovsg/formsg-javascript-sdk/pull/118)
|
|
19
32
|
- fix: upgrade actions/cache [`#115`](https://github.com/opengovsg/formsg-javascript-sdk/pull/115)
|
|
20
33
|
- Release v0.13.0 [`#114`](https://github.com/opengovsg/formsg-javascript-sdk/pull/114)
|