Skip to content

Commit cc31518

Browse files
chore(internal): remove CI condition (#730)
1 parent ababd80 commit cc31518

File tree

6 files changed

+9
-55
lines changed

6 files changed

+9
-55
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
if: github.repository == 'anthropics/anthropic-sdk-typescript'
15+
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -31,7 +31,7 @@ jobs:
3131
build:
3232
name: build
3333
runs-on: ubuntu-latest
34-
if: github.repository == 'anthropics/anthropic-sdk-typescript'
34+
3535

3636
steps:
3737
- uses: actions/checkout@v4
@@ -49,7 +49,6 @@ jobs:
4949
test:
5050
name: test
5151
runs-on: ubuntu-latest
52-
if: github.repository == 'anthropics/anthropic-sdk-typescript'
5352

5453
steps:
5554
- uses: actions/checkout@v4

.github/workflows/create-releases.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/publish-npm.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# workflow for re-running publishing to NPM in case it fails for some reason
2-
# you can run this workflow by navigating to https://www.github.com/anthropics/anthropic-sdk-typescript/actions/workflows/publish-npm.yml
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to NPM in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/anthropics/anthropic-sdk-typescript/actions/workflows/publish-npm.yml
34
name: Publish NPM
45
on:
56
workflow_dispatch:
@@ -8,6 +9,9 @@ on:
89
description: The path to run the release in, e.g. '.' or 'packages/vertex-sdk'
910
required: true
1011

12+
release:
13+
types: [published]
14+
1115
jobs:
1216
publish:
1317
name: publish

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ jobs:
1919
run: |
2020
bash ./bin/check-release-environment
2121
env:
22-
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
2322
NPM_TOKEN: ${{ secrets.ANTHROPIC_NPM_TOKEN || secrets.NPM_TOKEN }}
2423

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-ea0576fceb17a0976feca9aa03aa426984d6fe1390f2bcdbf9de0212a81c8334.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-ea0576fceb17a0976feca9aa03aa426984d6fe1390f2bcdbf9de0212a81c8334.yml
33
openapi_spec_hash: d2d7ec2a7a35a1ed2443c3b690c802c4
44
config_hash: f6e255d50f3d990f7b1171eb84304315

bin/check-release-environment

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
errors=()
44

5-
if [ -z "${STAINLESS_API_KEY}" ]; then
6-
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7-
fi
8-
95
if [ -z "${NPM_TOKEN}" ]; then
106
errors+=("The ANTHROPIC_NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
117
fi

0 commit comments

Comments
 (0)