From cee3f01db0208445015287b5787762833afdba97 Mon Sep 17 00:00:00 2001 From: Leandro Campos Date: Mon, 3 Aug 2026 15:20:58 -0300 Subject: [PATCH 1/2] Run public releases on ephemeral Nvoip CI --- .github/workflows/publish.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 38b5663..9832fca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,12 @@ on: release: types: [published] workflow_dispatch: + inputs: + publish: + description: Publish to npm after validation + required: true + type: boolean + default: false permissions: contents: read @@ -12,7 +18,10 @@ permissions: jobs: npm: name: Publish to npm - runs-on: ubuntu-latest + runs-on: + - codebuild-nvoip-ci-public-release-${{ github.run_id }}-${{ github.run_attempt }} + - organization-registration-name:Nvoip + - registration-group-id:4 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -20,6 +29,7 @@ jobs: node-version: "20" registry-url: "https://registry.npmjs.org" - run: npm pack --dry-run - - run: npm publish --access public --provenance + - if: github.event_name == 'release' || inputs.publish + run: npm publish --access public --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 6eba4ffa60b458ebd1a0781baa883f35453ad208 Mon Sep 17 00:00:00 2001 From: Leandro Campos Date: Mon, 3 Aug 2026 16:19:23 -0300 Subject: [PATCH 2/2] ci: run public releases on nvoip-ci container --- .github/workflows/publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9832fca..d6d23c0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,10 +18,7 @@ permissions: jobs: npm: name: Publish to npm - runs-on: - - codebuild-nvoip-ci-public-release-${{ github.run_id }}-${{ github.run_attempt }} - - organization-registration-name:Nvoip - - registration-group-id:4 + runs-on: [self-hosted, Linux, X64, nvoip-ci-public-release] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4