diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 671fe92dc6b..d1a8a8f322b 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] @@ -19,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: @@ -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 @@ -72,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