Update Node.js version recommendation to v22 #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pipeline | |
| on: [push, pull_request] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| GITHUB_SHA: ${{ github.sha }} | |
| jobs: | |
| verify-connector-configs: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 22.14.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.14.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build connector configs | |
| run: npm run build | |
| push-connector-configs: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-24.04 | |
| concurrency: | |
| group: release-${{ github.job }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 22.14.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.14.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build connector configs | |
| run: npm run build | |
| - name: Push connectors using StackOne CLI | |
| run: npx @stackone/cli push --api-key ${{ secrets.STACKONE_API_KEY }} src/configs/ |