Skip to content

Merge pull request #5 from StackOneHQ/adefreitas-patch-1 #6

Merge pull request #5 from StackOneHQ/adefreitas-patch-1

Merge pull request #5 from StackOneHQ/adefreitas-patch-1 #6

Workflow file for this run

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/