Skip to content

Commit

Permalink
ci: enable prod release mode (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
devcorpio authored Sep 27, 2023
1 parent 49ebd80 commit b49bc12
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
# This prevent lerna command from throwing this error:
# "Working tree has uncommitted changes, please commit or remove the following changes before continuing"
- name: Ignore git uncommited changes
- name: Ignore git uncommitted changes
run: |
git update-index --skip-worktree .npmrc
Expand Down Expand Up @@ -148,22 +148,22 @@ jobs:
headers: |-
cache-control: public,max-age=604800,immutable
# status:
# if: always()
# needs:
# - release
# runs-on: ubuntu-latest
# steps:
# - id: check
# uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
# with:
# needs: ${{ toJSON(needs) }}
# - uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
# if: inputs.dry-run == false
# with:
# status: ${{ steps.check.outputs.status }}
# vaultUrl: ${{ secrets.VAULT_ADDR }}
# vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
# vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
# slackChannel: "#apm-agent-js"
# message: "Build result for release publication"
status:
if: always()
needs:
- release
runs-on: ubuntu-latest
steps:
- id: check
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
with:
needs: ${{ toJSON(needs) }}
- uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
if: inputs.dry-run == false
with:
status: ${{ steps.check.outputs.status }}
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
slackChannel: "#apm-agent-js"
message: "Build result for release publication"
4 changes: 1 addition & 3 deletions scripts/ci-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ async function main() {
if (isDryRun) {
await dryRunMode()
} else {
console.log('SEE changes to be committed: \n\n')
await execa('git', ['status']).pipeStdout(process.stdout)
// await prodMode()
await prodMode()
}
}

Expand Down

0 comments on commit b49bc12

Please sign in to comment.