Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Added ability to run a build step in create release #2273

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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