Skip to content

Commit 41c2a87

Browse files
louibbitgobot
authored andcommitted
feat(ci): add express-only option to npmjs-release workflow
Adds an `express-only` boolean input to the `npmjs-release` workflow dispatch. When set to `true`, the `get-release-context` and `release-bitgojs` jobs are skipped and only `get-express-release-context` and `publish-express-to-docker-hub` run. This allows the express Docker image to be re-published independently after a partial release failure where the npm packages were already published successfully. Ticket: WCN-308
1 parent 6c87b40 commit 41c2a87

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/npmjs-release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
1010
type: boolean
1111
required: false
1212
default: false
13+
express-only:
14+
description: |
15+
If true, skips the npm publish jobs and runs only the
16+
express release (Docker image build and push). Use this
17+
during release recovery when the npm packages were already
18+
published but the express release did not complete.
19+
type: boolean
20+
required: false
21+
default: false
1322

1423
permissions:
1524
contents: write
@@ -24,6 +33,7 @@ env:
2433
jobs:
2534
get-release-context:
2635
name: Get release context
36+
if: inputs.express-only == false
2737
runs-on: ${{ vars.BASE_RUNNER_TYPE || 'ubuntu-latest' }}
2838
timeout-minutes: 10
2939
outputs:
@@ -111,6 +121,7 @@ jobs:
111121
112122
release-bitgojs:
113123
name: Release BitGoJS
124+
if: inputs.express-only == false
114125
needs:
115126
- get-release-context
116127
runs-on: ${{ vars.BASE_RUNNER_TYPE || 'ubuntu-latest' }}
@@ -204,7 +215,9 @@ jobs:
204215
205216
get-express-release-context:
206217
name: Get Express release context
207-
if: inputs.dry-run == false
218+
if: |
219+
inputs.dry-run == false &&
220+
(inputs.express-only == true || needs.release-bitgojs.result == 'success')
208221
needs:
209222
- release-bitgojs
210223
runs-on: ${{ vars.BASE_RUNNER_TYPE || 'ubuntu-latest' }}

0 commit comments

Comments
 (0)