summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/.github/workflows
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-03 17:08:42 -0400
committerDax Raad <[email protected]>2025-08-03 17:09:30 -0400
commita50bef69139976e9ce95c71a2757afcf835c34ec (patch)
tree0d37af8ba6e7219d0067e83548e55c9f86841c4c /packages/sdk/.github/workflows
parented397c5057c5145325a6335858160e0af3b8fad3 (diff)
downloadopencode-a50bef69139976e9ce95c71a2757afcf835c34ec.tar.gz
opencode-a50bef69139976e9ce95c71a2757afcf835c34ec.zip
ignore: cleanup
Diffstat (limited to 'packages/sdk/.github/workflows')
-rw-r--r--packages/sdk/.github/workflows/ci.yml88
-rw-r--r--packages/sdk/.github/workflows/publish-npm.yml32
-rw-r--r--packages/sdk/.github/workflows/release-doctor.yml21
3 files changed, 0 insertions, 141 deletions
diff --git a/packages/sdk/.github/workflows/ci.yml b/packages/sdk/.github/workflows/ci.yml
deleted file mode 100644
index 5770c1945..000000000
--- a/packages/sdk/.github/workflows/ci.yml
+++ /dev/null
@@ -1,88 +0,0 @@
-name: CI
-on:
- push:
- branches-ignore:
- - 'generated'
- - 'codegen/**'
- - 'integrated/**'
- - 'stl-preview-head/**'
- - 'stl-preview-base/**'
- pull_request:
- branches-ignore:
- - 'stl-preview-head/**'
- - 'stl-preview-base/**'
-
-jobs:
- lint:
- timeout-minutes: 10
- name: lint
- runs-on: ${{ github.repository == 'stainless-sdks/opencode-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
- if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
- steps:
- - uses: actions/checkout@v4
-
- - name: Set up Node
- uses: actions/setup-node@v4
- with:
- node-version: '20'
-
- - name: Bootstrap
- run: ./scripts/bootstrap
-
- - name: Check types
- run: ./scripts/lint
-
- build:
- timeout-minutes: 5
- name: build
- runs-on: ${{ github.repository == 'stainless-sdks/opencode-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
- if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
- permissions:
- contents: read
- id-token: write
- steps:
- - uses: actions/checkout@v4
-
- - name: Set up Node
- uses: actions/setup-node@v4
- with:
- node-version: '20'
-
- - name: Bootstrap
- run: ./scripts/bootstrap
-
- - name: Check build
- run: ./scripts/build
-
- - name: Get GitHub OIDC Token
- if: github.repository == 'stainless-sdks/opencode-typescript'
- id: github-oidc
- uses: actions/github-script@v6
- with:
- script: core.setOutput('github_token', await core.getIDToken());
-
- - name: Upload tarball
- if: github.repository == 'stainless-sdks/opencode-typescript'
- env:
- URL: https://pkg.stainless.com/s
- AUTH: ${{ steps.github-oidc.outputs.github_token }}
- SHA: ${{ github.sha }}
- run: ./scripts/utils/upload-artifact.sh
- test:
- timeout-minutes: 10
- name: test
- runs-on: ${{ github.repository == 'stainless-sdks/opencode-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
- if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
- steps:
- - uses: actions/checkout@v4
-
- - name: Set up Node
- uses: actions/setup-node@v4
- with:
- node-version: '20'
-
- - name: Bootstrap
- run: ./scripts/bootstrap
-
- - name: Run tests
- run: ./scripts/test
diff --git a/packages/sdk/.github/workflows/publish-npm.yml b/packages/sdk/.github/workflows/publish-npm.yml
deleted file mode 100644
index 787fb3a71..000000000
--- a/packages/sdk/.github/workflows/publish-npm.yml
+++ /dev/null
@@ -1,32 +0,0 @@
-# This workflow is triggered when a GitHub release is created.
-# It can also be run manually to re-publish to NPM in case it failed for some reason.
-# You can run this workflow by navigating to https://www.github.com/sst/opencode-sdk-js/actions/workflows/publish-npm.yml
-name: Publish NPM
-on:
- workflow_dispatch:
-
- release:
- types: [published]
-
-jobs:
- publish:
- name: publish
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Set up Node
- uses: actions/setup-node@v3
- with:
- node-version: '20'
-
- - name: Install dependencies
- run: |
- yarn install
-
- - name: Publish to NPM
- run: |
- bash ./bin/publish-npm
- env:
- NPM_TOKEN: ${{ secrets.OPENCODE_NPM_TOKEN || secrets.NPM_TOKEN }}
diff --git a/packages/sdk/.github/workflows/release-doctor.yml b/packages/sdk/.github/workflows/release-doctor.yml
deleted file mode 100644
index d3a4b9e57..000000000
--- a/packages/sdk/.github/workflows/release-doctor.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-name: Release Doctor
-on:
- pull_request:
- branches:
- - main
- workflow_dispatch:
-
-jobs:
- release_doctor:
- name: release doctor
- runs-on: ubuntu-latest
- if: github.repository == 'sst/opencode-sdk-js' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
-
- steps:
- - uses: actions/checkout@v4
-
- - name: Check release environment
- run: |
- bash ./bin/check-release-environment
- env:
- NPM_TOKEN: ${{ secrets.OPENCODE_NPM_TOKEN || secrets.NPM_TOKEN }}