Skip to content

Commit

Permalink
ci: Added ability to run a build step in create release (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 authored Jun 12, 2024
1 parent 181ec1b commit 4c2f24c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
type: string
required: false
default: ci-workflow.yml
build:
description: Flag to run `npm run build` before publishing
type: boolean
required: false
default: false
secrets:
# Cannot rely on environment secrets(i.e. from node-newrelic settings or org level)
# in a reusable workflow. We must pass it in, see create-release.yml
Expand Down Expand Up @@ -48,6 +53,9 @@ jobs:
npm install
# Install deps in agent repo
npm install --prefix agent-repo
- name: Build project
if: ${{ inputs.build }}
run: npm run build
- name: Setup GitHub Credentials
run: |
git config user.name $GITHUB_ACTOR
Expand Down

0 comments on commit 4c2f24c

Please sign in to comment.