File tree Expand file tree Collapse file tree 6 files changed +9
-55
lines changed Expand file tree Collapse file tree 6 files changed +9
-55
lines changed Original file line number Diff line number Diff line change 12
12
lint :
13
13
name : lint
14
14
runs-on : ubuntu-latest
15
- if : github.repository == 'anthropics/anthropic-sdk-typescript'
15
+
16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
31
31
build :
32
32
name : build
33
33
runs-on : ubuntu-latest
34
- if : github.repository == 'anthropics/anthropic-sdk-typescript'
34
+
35
35
36
36
steps :
37
37
- uses : actions/checkout@v4
49
49
test :
50
50
name : test
51
51
runs-on : ubuntu-latest
52
- if : github.repository == 'anthropics/anthropic-sdk-typescript'
53
52
54
53
steps :
55
54
- uses : actions/checkout@v4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
3
4
name : Publish NPM
4
5
on :
5
6
workflow_dispatch :
8
9
description : The path to run the release in, e.g. '.' or 'packages/vertex-sdk'
9
10
required : true
10
11
12
+ release :
13
+ types : [published]
14
+
11
15
jobs :
12
16
publish :
13
17
name : publish
Original file line number Diff line number Diff line change 19
19
run : |
20
20
bash ./bin/check-release-environment
21
21
env :
22
- STAINLESS_API_KEY : ${{ secrets.STAINLESS_API_KEY }}
23
22
NPM_TOKEN : ${{ secrets.ANTHROPIC_NPM_TOKEN || secrets.NPM_TOKEN }}
24
23
Original file line number Diff line number Diff line change 1
1
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
3
3
openapi_spec_hash : d2d7ec2a7a35a1ed2443c3b690c802c4
4
4
config_hash : f6e255d50f3d990f7b1171eb84304315
Original file line number Diff line number Diff line change 2
2
3
3
errors=()
4
4
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
-
9
5
if [ -z " ${NPM_TOKEN} " ]; then
10
6
errors+=(" The ANTHROPIC_NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets" )
11
7
fi
You can’t perform that action at this time.
0 commit comments