From f058a5bcca7dbd7447a07cc45d9ac6c242580f2e Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Sat, 27 Nov 2021 15:58:36 +0100 Subject: [PATCH] ci: validate on pr (#22) Signed-off-by: Timo Glastra --- .github/workflows/continuous-deployment.yml | 5 ++++- src/index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 49224f5..e92a7ea 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -7,6 +7,9 @@ on: description: The type of release. Should be one of "major", "minor", "patch" required: true default: 'patch' + pull_request: + branches: + - main # Make sure we're not running multiple release steps at the same time as this can give issues with determining the next npm version to release. # Ideally we only add this to the 'release' job so it doesn't limit PR runs, but github can't guarantee the job order in that case: @@ -103,4 +106,4 @@ jobs: - name: Release version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: yarn release ${{ github.event.inputs.releaseType }} \ No newline at end of file + run: yarn release ${{ github.event.inputs.releaseType }} diff --git a/src/index.js b/src/index.js index 5c7987d..53574c3 100644 --- a/src/index.js +++ b/src/index.js @@ -707,7 +707,7 @@ const indy = { }, async generateNonce() { - return IndySdk.generateNonce(); + return IndySdk.generateNonce() }, async appendTxnAuthorAgreementAcceptanceToRequest(