From 2af771ff2572f02044e5c7e2eb5a5065e1dd830c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 4 Feb 2025 09:17:31 -0500 Subject: [PATCH 1/2] ci: switches to a tag trigger to align with other languages --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 671fe92dc6b..8f51e1660cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ on: workflow_dispatch: push: branches: [main] + tags: [ 'v*' ] pull_request: branches: [main] @@ -63,7 +64,7 @@ jobs: run: exit 1 publish-npm: - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.actor == 'release-please[bot]'}} + if: startsWith(github.ref, 'refs/tags/') needs: build environment: name: production_feed From a136fad9bb2c1c8e92c207490b3e1762078228ea Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 4 Feb 2025 09:25:16 -0500 Subject: [PATCH 2/2] ci: adds node 22 --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f51e1660cd..d1a8a8f322b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] # Single version should work for compilation testing steps: @@ -73,10 +73,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build - - run: npx lerna publish from-package --yes + - run: npx lerna publish from-package --no-push --yes env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} \ No newline at end of file