Skip to content

Commit 48d59ad

Browse files
committed
add publish script for OIDC support
1 parent add008c commit 48d59ad

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # for pushing tags
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: |
26+
git config --global user.name 'github-actions[bot]'
27+
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
28+
- run: |
29+
git tag "v$(jq -r .version package.json)"
30+
git push origin "v$(jq -r .version package.json)"
31+
- run: npm publish

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,27 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v0.14.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.14.0...v0.14.0)
8+
9+
- feat: add verified content to v3 [`#121`](https://github.com/opengovsg/formsg-javascript-sdk/pull/121)
10+
- chore: remove build status from README.md [`#120`](https://github.com/opengovsg/formsg-javascript-sdk/pull/120)
11+
12+
#### [v0.14.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.13.0...v0.14.0)
13+
14+
> 6 August 2025
15+
16+
- feat: add signature to supported form fields [`#118`](https://github.com/opengovsg/formsg-javascript-sdk/pull/118)
17+
- fix: upgrade actions/cache [`#115`](https://github.com/opengovsg/formsg-javascript-sdk/pull/115)
18+
- Release v0.13.0 [`#114`](https://github.com/opengovsg/formsg-javascript-sdk/pull/114)
19+
- updated readme with address answerArray [`#112`](https://github.com/opengovsg/formsg-javascript-sdk/pull/112)
20+
- build(deps-dev): bump braces from 3.0.2 to 3.0.3 [`#109`](https://github.com/opengovsg/formsg-javascript-sdk/pull/109)
21+
- build(deps): bump follow-redirects from 1.15.4 to 1.15.6 [`#107`](https://github.com/opengovsg/formsg-javascript-sdk/pull/107)
22+
- add signature to supported form fields [`31db628`](https://github.com/opengovsg/formsg-javascript-sdk/commit/31db628ce44e009b5c19f8c9910bd997d77df586)
23+
724
#### [v0.13.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.12.0...v0.13.0)
825

26+
> 15 January 2025
27+
928
- add address to field type [`#111`](https://github.com/opengovsg/formsg-javascript-sdk/pull/111)
1029

1130
#### [v0.12.0](https://github.com/opengovsg/formsg-javascript-sdk/compare/v0.12.0-alpha.1...v0.12.0)

0 commit comments

Comments
 (0)