From 2e85f33594d5a9c5b5b293f699521d394b77b250 Mon Sep 17 00:00:00 2001 From: Matthew Dean Date: Thu, 24 Oct 2024 11:09:28 +0100 Subject: [PATCH] Add version bump flows (#280) * Add version bump flows * Updating version to 2.10.90 --------- Co-authored-by: dc-autobot[bot] <181364585+dc-autobot[bot]@users.noreply.github.com> --- .../workflows/synchronise-pr-version-npm.yml | 19 +++++++++++++++++++ .../synchronise-trunk-version-npm.yml | 18 ++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/synchronise-pr-version-npm.yml create mode 100644 .github/workflows/synchronise-trunk-version-npm.yml diff --git a/.github/workflows/synchronise-pr-version-npm.yml b/.github/workflows/synchronise-pr-version-npm.yml new file mode 100644 index 0000000..4db6c69 --- /dev/null +++ b/.github/workflows/synchronise-pr-version-npm.yml @@ -0,0 +1,19 @@ +name: Synchronise Version + +on: + pull_request: + types: [labeled, unlabeled, opened, reopened, synchronize] + +permissions: + contents: write + pull-requests: write + +jobs: + synchronise-pr-version-npm: + uses: digicatapult/shared-workflows/.github/workflows/synchronise-pr-version-npm.yml@main + with: + pr-number: ${{ github.event.pull_request.number }} + trunk-branch: 'main' + secrets: + bot-id: ${{ secrets.BOT_ID }} + bot-key: ${{ secrets.BOT_KEY }} diff --git a/.github/workflows/synchronise-trunk-version-npm.yml b/.github/workflows/synchronise-trunk-version-npm.yml new file mode 100644 index 0000000..65f5f14 --- /dev/null +++ b/.github/workflows/synchronise-trunk-version-npm.yml @@ -0,0 +1,18 @@ +name: Synchronise all PR versions + +on: + push: + branches: "main" + +permissions: + contents: write + pull-requests: write + +jobs: + synchronise-trunk-version-npm: + uses: digicatapult/shared-workflows/.github/workflows/synchronise-trunk-version-npm.yml@main + with: + trunk-branch: "main" + secrets: + bot-id: ${{ secrets.BOT_ID }} + bot-key: ${{ secrets.BOT_KEY }} diff --git a/package-lock.json b/package-lock.json index ad66e29..f3f3cf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@digicatapult/sqnc-ipfs", - "version": "2.10.89", + "version": "2.10.90", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@digicatapult/sqnc-ipfs", - "version": "2.10.89", + "version": "2.10.90", "license": "Apache-2.0", "dependencies": { "@polkadot/api": "^14.1.1", diff --git a/package.json b/package.json index 79f9b72..15ad5a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@digicatapult/sqnc-ipfs", - "version": "2.10.89", + "version": "2.10.90", "description": "IPFS node for use in SQNC", "main": "app/index.js", "type": "module",