Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Release v5.36.0 #3136

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b68102d
chore(deps-dev): bump lint-staged from 12.1.1 to 12.1.2 (#3089)
dependabot[bot] Nov 23, 2021
26eea94
chore(deps-dev): bump type-fest from 2.5.4 to 2.6.0 (#3094)
dependabot[bot] Nov 23, 2021
07c05e3
chore(deps-dev): bump eslint-plugin-jest from 25.2.4 to 25.3.0 (#3095)
dependabot[bot] Nov 23, 2021
831574a
fix(deps): bump aws-sdk from 2.1033.0 to 2.1034.0 (#3096)
dependabot[bot] Nov 23, 2021
f7825a4
chore(deps-dev): bump htmlhint from 0.16.1 to 0.16.3 (#3098)
dependabot[bot] Nov 24, 2021
9731c84
fix(deps): bump aws-sdk from 2.1034.0 to 2.1035.0 (#3097)
dependabot[bot] Nov 25, 2021
5252c96
fix(deps): bump aws-sdk from 2.1035.0 to 2.1036.0 (#3101)
dependabot[bot] Nov 25, 2021
bf26ff4
chore(deps-dev): bump prettier from 2.4.1 to 2.5.0 (#3102)
dependabot[bot] Nov 26, 2021
580520f
fix(deps): bump nodemailer from 6.7.1 to 6.7.2 (#3104)
dependabot[bot] Nov 28, 2021
03f51e6
fix(deps): bump aws-sdk from 2.1036.0 to 2.1037.0 (#3106)
dependabot[bot] Nov 29, 2021
34e5a2b
chore(deps-dev): bump htmlhint from 0.16.3 to 1.0.0 (#3105)
dependabot[bot] Nov 29, 2021
55d6692
chore(deps-dev): bump jest-extended from 1.1.0 to 1.2.0 (#3114)
dependabot[bot] Nov 29, 2021
5316c3d
chore(deps-dev): bump core-js from 3.19.1 to 3.19.2 (#3115)
dependabot[bot] Dec 1, 2021
bb48fa5
fix(deps): bump date-fns from 2.26.0 to 2.27.0 (#3117)
dependabot[bot] Dec 1, 2021
f4eb705
fix(deps): bump aws-sdk from 2.1037.0 to 2.1039.0 (#3118)
dependabot[bot] Dec 1, 2021
b30f162
chore(ci): add semantic.yml to modify CI behaviour (#3109)
karrui Dec 1, 2021
c6e732c
docs: update README.md to bring webhooks out of beta (#3108)
r00dgirl Dec 1, 2021
8e1668e
fix(deps): bump angular-ui-router from 1.0.29 to 1.0.30 (#3121)
dependabot[bot] Dec 1, 2021
44f973a
chore(deps-dev): bump type-fest from 2.6.0 to 2.8.0 (#3122)
dependabot[bot] Dec 1, 2021
a5127a4
fix(deps): bump aws-sdk from 2.1039.0 to 2.1040.0 (#3123)
dependabot[bot] Dec 1, 2021
700f7c3
feat: migrate CI pipeline to github actions (#3120)
tshuli Dec 2, 2021
574c1e4
chore: bump version to 5.36.0
tshuli Dec 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pull_request_rules:
- check-success~=CodeQL # CodeQL code scanning results
- check-success~=GitGuardian
- check-success~=Semantic Pull Request
- check-success~=Travis CI - Branch
- check-success~=build_deploy_application
- check-success~=coverage/coveralls
- check-success~=license/snyk
- check-success~=security/snyk
Expand All @@ -32,7 +32,7 @@ pull_request_rules:
- check-success~=CodeQL # CodeQL code scanning results
- check-success~=GitGuardian
- check-success~=Semantic Pull Request
- check-success~=Travis CI - Branch
- check-success~=build_deploy_application
- check-success~=coverage/coveralls
- check-success~=license/snyk
- check-success~=security/snyk
Expand Down
18 changes: 18 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Always validate the PR title, and ignore the commits
# since we only squash commits
titleOnly: true

types:
- feat
- fix
- docs
- style
- refactor
# alias of refactor
- ref
- perf
- test
- build
- ci
- chore
- revert
88 changes: 88 additions & 0 deletions .github/workflows/deploy-eb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Deploy to AWS Elastic Beanstalk
on:
push:
branches: # There should be 4 environments in github actions secrets: release, staging, staging-alt, uat. This is different from the DEPLOY_ENV secret which corresponds to elastic beanstalk environment name
- release
- staging
- staging-alt
- uat

jobs:
set_environment:
outputs:
current_env: ${{ steps.set-environment.outputs.current_env }}
runs-on: ubuntu-latest
steps:
- id: set-environment
run: echo "::set-output name=current_env::${{github.ref_name}}"

build_deploy_application:
needs: set_environment
environment:
name: ${{ needs.set_environment.outputs.current_env }}
env:
IMAGE_TAG: github-actions-${{ github.sha }}-${{ github.run_id }}-${{github.run_attempt}}
BRANCH: ${{ needs.set_environment.outputs.current_env }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Build
env:
NODE_OPTIONS: '--max-old-space-size=4096'
run: |
npm ci
set -e
npm_config_mode=yes npx lockfile-lint --type npm --path package.json --validate-https --allowed-hosts npm
npm run lint-ci
npm run build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build, tag, and push image to Amazon ECR
env:
ECR_REPOSITORY: ${{ secrets.ECR_REPO }}
run: |
docker build -f Dockerfile.production -t $ECR_REPOSITORY:$IMAGE_TAG .
docker tag $ECR_REPOSITORY:$IMAGE_TAG $ECR_REPOSITORY:$BRANCH
docker push -a $ECR_REPOSITORY
sed -i -e "s/@TAG/$IMAGE_TAG/g" Dockerrun.aws.json
zip -r "$IMAGE_TAG.zip" .ebextensions Dockerrun.aws.json

- name: Copy to S3
env:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
run: |
aws s3 cp $IMAGE_TAG.zip s3://$BUCKET_NAME/$IMAGE_TAG.zip

- name: Create application version
env:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
APP_NAME: ${{ secrets.APP_NAME }}
run: |
aws elasticbeanstalk create-application-version --application-name $APP_NAME \
--version-label $IMAGE_TAG \
--source-bundle S3Bucket=$BUCKET_NAME,S3Key=$IMAGE_TAG.zip \
--description "${{ github.event.head_commit.message }}"

- name: Update EB environment
id: update-eb-1
env:
APP_NAME: ${{ secrets.APP_NAME }}
DEPLOY_ENV: ${{ secrets.DEPLOY_ENV }}
run: |
aws elasticbeanstalk update-environment --application-name $APP_NAME \
--environment-name $DEPLOY_ENV \
--version-label $IMAGE_TAG
123 changes: 0 additions & 123 deletions .travis.yml

This file was deleted.

65 changes: 59 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,65 @@ All notable changes to this project will be documented in this file. Dates are d

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

#### [v5.36.0](https://github.com/opengovsg/FormSG/compare/v5.35.0...v5.36.0)

- feat: migrate CI pipeline to github actions [`#3120`](https://github.com/opengovsg/FormSG/pull/3120)
- fix(deps): bump aws-sdk from 2.1039.0 to 2.1040.0 [`#3123`](https://github.com/opengovsg/FormSG/pull/3123)
- chore(deps-dev): bump type-fest from 2.6.0 to 2.8.0 [`#3122`](https://github.com/opengovsg/FormSG/pull/3122)
- fix(deps): bump angular-ui-router from 1.0.29 to 1.0.30 [`#3121`](https://github.com/opengovsg/FormSG/pull/3121)
- docs: update README.md to bring webhooks out of beta [`#3108`](https://github.com/opengovsg/FormSG/pull/3108)
- chore(ci): add semantic.yml to modify CI behaviour [`#3109`](https://github.com/opengovsg/FormSG/pull/3109)
- fix(deps): bump aws-sdk from 2.1037.0 to 2.1039.0 [`#3118`](https://github.com/opengovsg/FormSG/pull/3118)
- fix(deps): bump date-fns from 2.26.0 to 2.27.0 [`#3117`](https://github.com/opengovsg/FormSG/pull/3117)
- chore(deps-dev): bump core-js from 3.19.1 to 3.19.2 [`#3115`](https://github.com/opengovsg/FormSG/pull/3115)
- chore(deps-dev): bump jest-extended from 1.1.0 to 1.2.0 [`#3114`](https://github.com/opengovsg/FormSG/pull/3114)
- chore(deps-dev): bump htmlhint from 0.16.3 to 1.0.0 [`#3105`](https://github.com/opengovsg/FormSG/pull/3105)
- fix(deps): bump aws-sdk from 2.1036.0 to 2.1037.0 [`#3106`](https://github.com/opengovsg/FormSG/pull/3106)
- fix(deps): bump nodemailer from 6.7.1 to 6.7.2 [`#3104`](https://github.com/opengovsg/FormSG/pull/3104)
- chore(deps-dev): bump prettier from 2.4.1 to 2.5.0 [`#3102`](https://github.com/opengovsg/FormSG/pull/3102)
- fix(deps): bump aws-sdk from 2.1035.0 to 2.1036.0 [`#3101`](https://github.com/opengovsg/FormSG/pull/3101)
- fix(deps): bump aws-sdk from 2.1034.0 to 2.1035.0 [`#3097`](https://github.com/opengovsg/FormSG/pull/3097)
- chore(deps-dev): bump htmlhint from 0.16.1 to 0.16.3 [`#3098`](https://github.com/opengovsg/FormSG/pull/3098)
- fix(deps): bump aws-sdk from 2.1033.0 to 2.1034.0 [`#3096`](https://github.com/opengovsg/FormSG/pull/3096)
- chore(deps-dev): bump eslint-plugin-jest from 25.2.4 to 25.3.0 [`#3095`](https://github.com/opengovsg/FormSG/pull/3095)
- chore(deps-dev): bump type-fest from 2.5.4 to 2.6.0 [`#3094`](https://github.com/opengovsg/FormSG/pull/3094)
- chore(deps-dev): bump lint-staged from 12.1.1 to 12.1.2 [`#3089`](https://github.com/opengovsg/FormSG/pull/3089)
- chore: merge release v5.35.0 back to develop [`#3057`](https://github.com/opengovsg/FormSG/pull/3057)
- chore(deps-dev): bump csv-parse from 5.0.2 to 5.0.3 [`#3085`](https://github.com/opengovsg/FormSG/pull/3085)
- fix(deps): bump date-fns from 2.25.0 to 2.26.0 [`#3084`](https://github.com/opengovsg/FormSG/pull/3084)
- chore(deps-dev): bump lint-staged from 12.0.3 to 12.1.1 [`#3088`](https://github.com/opengovsg/FormSG/pull/3088)
- fix(deps): bump neverthrow from 4.3.0 to 4.3.1 [`#3087`](https://github.com/opengovsg/FormSG/pull/3087)
- fix(deps): bump aws-sdk from 2.1032.0 to 2.1033.0 [`#3086`](https://github.com/opengovsg/FormSG/pull/3086)
- fix(deps): bump cookie-parser from 1.4.5 to 1.4.6 [`#3071`](https://github.com/opengovsg/FormSG/pull/3071)
- chore(deps-dev): bump csv-parse from 4.16.3 to 5.0.2 [`#3072`](https://github.com/opengovsg/FormSG/pull/3072)
- chore(deps-dev): bump lint-staged from 12.0.2 to 12.0.3 [`#3083`](https://github.com/opengovsg/FormSG/pull/3083)
- chore(deps-dev): bump core-js from 3.19.0 to 3.19.1 [`#3082`](https://github.com/opengovsg/FormSG/pull/3082)
- fix(deps): bump aws-sdk from 2.1031.0 to 2.1032.0 [`#3081`](https://github.com/opengovsg/FormSG/pull/3081)
- chore(deps-dev): bump @types/node from 14.17.33 to 14.17.34 [`#3080`](https://github.com/opengovsg/FormSG/pull/3080)
- chore(deps-dev): bump @types/jest from 27.0.2 to 27.0.3 [`#3079`](https://github.com/opengovsg/FormSG/pull/3079)
- chore(deps-dev): bump htmlhint from 0.16.0 to 0.16.1 [`#3076`](https://github.com/opengovsg/FormSG/pull/3076)
- chore(deps-dev): bump @types/validator from 13.6.6 to 13.7.0 [`#3078`](https://github.com/opengovsg/FormSG/pull/3078)
- fix(deps): bump express-rate-limit from 5.5.0 to 5.5.1 [`#3077`](https://github.com/opengovsg/FormSG/pull/3077)
- chore(deps-dev): bump typescript from 4.4.4 to 4.5.2 [`#3074`](https://github.com/opengovsg/FormSG/pull/3074)
- chore(deps-dev): bump @types/uuid from 8.3.1 to 8.3.3 [`#3075`](https://github.com/opengovsg/FormSG/pull/3075)
- chore(deps-dev): bump concurrently from 6.3.0 to 6.4.0 [`#3073`](https://github.com/opengovsg/FormSG/pull/3073)
- fix(deps): bump twilio from 3.71.1 to 3.71.2 [`#3069`](https://github.com/opengovsg/FormSG/pull/3069)
- fix(deps): bump aws-sdk from 2.1019.0 to 2.1031.0 [`#3068`](https://github.com/opengovsg/FormSG/pull/3068)
- chore(deps-dev): bump eslint-plugin-jest from 25.2.2 to 25.2.4 [`#3066`](https://github.com/opengovsg/FormSG/pull/3066)
- chore(deps-dev): bump @babel/plugin-transform-runtime [`#3063`](https://github.com/opengovsg/FormSG/pull/3063)
- fix(deps): bump @sentry/integrations from 6.13.3 to 6.15.0 [`#3065`](https://github.com/opengovsg/FormSG/pull/3065)
- chore(deps-dev): bump @types/node from 14.17.32 to 14.17.33 [`#3064`](https://github.com/opengovsg/FormSG/pull/3064)
- chore(deps-dev): bump eslint-plugin-import from 2.25.2 to 2.25.3 [`#3062`](https://github.com/opengovsg/FormSG/pull/3062)
- fix(deps): bump libphonenumber-js from 1.9.39 to 1.9.43 [`#3061`](https://github.com/opengovsg/FormSG/pull/3061)
- chore(deps-dev): bump @babel/preset-env from 7.16.0 to 7.16.4 [`#3060`](https://github.com/opengovsg/FormSG/pull/3060)
- chore(deps-dev): bump type-fest from 2.5.2 to 2.5.4 [`#3059`](https://github.com/opengovsg/FormSG/pull/3059)
- fix(deps): bump bson-ext from 2.0.5 to 2.0.6 [`#3058`](https://github.com/opengovsg/FormSG/pull/3058)
- build: release v5.35.0 [`#3056`](https://github.com/opengovsg/FormSG/pull/3056)

#### [v5.35.0](https://github.com/opengovsg/FormSG/compare/v5.34.0...v5.35.0)

> 17 November 2021

- fix(deps): bump @sentry/browser from 6.13.3 to 6.15.0 [`#3052`](https://github.com/opengovsg/FormSG/pull/3052)
- fix(deps): bump web-streams-polyfill from 3.1.1 to 3.2.0 [`#3051`](https://github.com/opengovsg/FormSG/pull/3051)
- fix(deps): bump moment-timezone from 0.5.33 to 0.5.34 [`#3053`](https://github.com/opengovsg/FormSG/pull/3053)
Expand All @@ -17,6 +74,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- chore: merge release v5.34.0 back to develop [`#3043`](https://github.com/opengovsg/FormSG/pull/3043)
- build: release v5.34.0 [`#3042`](https://github.com/opengovsg/FormSG/pull/3042)
- build: Release 5.33.0 [`#3014`](https://github.com/opengovsg/FormSG/pull/3014)
- chore: bump version to v5.35.0 [`567478d`](https://github.com/opengovsg/FormSG/commit/567478d0bda03f898780b31051a17dd837106c35)

#### [v5.34.0](https://github.com/opengovsg/FormSG/compare/v5.33.0...v5.34.0)

Expand Down Expand Up @@ -905,7 +963,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix(verification): loosen OTP waiting time by 2 seconds [`#1957`](https://github.com/opengovsg/FormSG/pull/1957)
- chore: bump version to 5.12.0 [`85759bc`](https://github.com/opengovsg/FormSG/commit/85759bc9dc01f73da3cbd0ec73c636e58e983948)

#### [v5.11.0](https://github.com/opengovsg/FormSG/compare/v5.10.1...v5.11.0)
#### [v5.11.0](https://github.com/opengovsg/FormSG/compare/v5.10.0...v5.11.0)

> 25 May 2021

Expand Down Expand Up @@ -973,11 +1031,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`#1868`](https://github.com/opengovsg/FormSG/pull/1868)
- fix(deps): bump @sentry/integrations from 6.3.5 to 6.3.6 [`#1850`](https://github.com/opengovsg/FormSG/pull/1850)
- chore: bump version to 5.11.0 [`54b1958`](https://github.com/opengovsg/FormSG/commit/54b1958d0968e670ef145461d9d7859384d573ef)

#### [v5.10.1](https://github.com/opengovsg/FormSG/compare/v5.10.0...v5.10.1)

> 17 May 2021

- chore: bump version to v5.10.1 [`0442cd7`](https://github.com/opengovsg/FormSG/commit/0442cd72637019fb1e43bce5f8f5abe14ee79f8c)
- fix: allow for unknown keys in updateEndPage validator [`617d86a`](https://github.com/opengovsg/FormSG/commit/617d86a28910eec6ebd3249a2de636086429d6a6)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FormSG

[![Build Status](https://travis-ci.com/opengovsg/formsg.svg?branch=release)](https://travis-ci.com/opengovsg/formsg)
[![Build Status](https://github.com/opengovsg/FormSG/actions/workflows/deploy-eb.yml)](https://github.com/opengovsg/FormSG/actions/workflows/deploy-eb.yml)
[![Coverage Status](https://coveralls.io/repos/github/opengovsg/FormSG/badge.svg?branch=develop)](https://coveralls.io/github/opengovsg/FormSG?branch=develop)

## Table of Contents
Expand Down Expand Up @@ -37,7 +37,7 @@ Notable features include:
- (Singapore government agencies only) Citizen authentication with [SingPass](https://www.singpass.gov.sg/singpass/common/aboutus)
- (Singapore government agencies only) Corporate authentication with [CorpPass](https://www.corppass.gov.sg/corppass/common/aboutus)
- (Singapore government agencies only) Automatic prefill of verified data with [MyInfo](https://www.singpass.gov.sg/myinfo/common/aboutus)
- (beta) Webhooks functionality via the [FormSG JavaScript SDK](https://github.com/opengovsg/formsg-sdk).
- Webhooks functionality via the official [FormSG JavaScript SDK](https://github.com/opengovsg/formsg-sdk) and contributor-supported [FormSG Ruby SDK] (https://github.com/opengovsg/formsg-ruby-sdk)

The current product roadmap includes:

Expand Down
Loading