From b49bc12a126339e73342c3070071f71baeeca621 Mon Sep 17 00:00:00 2001 From: Alberto Delgado Roda Date: Wed, 27 Sep 2023 13:58:18 +0200 Subject: [PATCH] ci: enable prod release mode (#1442) --- .github/workflows/release.yml | 40 +++++++++++++++++------------------ scripts/ci-release.mjs | 4 +--- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35e5c8b07..8703c1edb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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" diff --git a/scripts/ci-release.mjs b/scripts/ci-release.mjs index 69287a804..1b1e10c05 100644 --- a/scripts/ci-release.mjs +++ b/scripts/ci-release.mjs @@ -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() } }