# Not supported due to compatibility issues with Bun Http2 stdlib name: Node Main Workflow on: push: branches: - main workflow_dispatch: inputs: version: description: 'Version' required: true jobs: run-node-script: runs-on: ubuntu-latest defaults: run: working-directory: CI steps: - name: Checkout Action uses: actions/checkout@v4 - name: Setup Node Action uses: actions/setup-node@v4 with: node-version: '20' - name: Install Dependencies run: yarn install - name: Run Node Script - Update if: github.event_name == 'workflow_dispatch' run: yarn tsx index.ts '${{ toJSON(secrets) }}' '${{ toJSON(github.event) }}' update - name: Run Node Script - Push if: github.event_name == 'push' run: yarn tsx index.ts '${{ toJSON(secrets) }}' '${{ toJSON(github.event) }}' push