Skip to content

Commit 4c2f24c

Browse files
authored
ci: Added ability to run a build step in create release (#2273)
1 parent 181ec1b commit 4c2f24c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release-creation.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
type: string
1414
required: false
1515
default: ci-workflow.yml
16+
build:
17+
description: Flag to run `npm run build` before publishing
18+
type: boolean
19+
required: false
20+
default: false
1621
secrets:
1722
# Cannot rely on environment secrets(i.e. from node-newrelic settings or org level)
1823
# in a reusable workflow. We must pass it in, see create-release.yml
@@ -48,6 +53,9 @@ jobs:
4853
npm install
4954
# Install deps in agent repo
5055
npm install --prefix agent-repo
56+
- name: Build project
57+
if: ${{ inputs.build }}
58+
run: npm run build
5159
- name: Setup GitHub Credentials
5260
run: |
5361
git config user.name $GITHUB_ACTOR

0 commit comments

Comments
 (0)