Skip to content

Commit 4a7c7e1

Browse files
authored
Merge pull request #2 from digitalocean/release-please--branches--main--changes--next--components--gradient
release: 0.1.0-alpha.1
2 parents a962d4f + 89b5b13 commit 4a7c7e1

File tree

247 files changed

+707
-24110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+707
-24110
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Node
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '22'
27+
node-version: '20'
2828

2929
- name: Bootstrap
3030
run: ./scripts/bootstrap
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Node
4747
uses: actions/setup-node@v4
4848
with:
49-
node-version: '22'
49+
node-version: '20'
5050

5151
- name: Bootstrap
5252
run: ./scripts/bootstrap
@@ -68,15 +68,6 @@ jobs:
6868
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6969
SHA: ${{ github.sha }}
7070
run: ./scripts/utils/upload-artifact.sh
71-
72-
- name: Upload MCP Server tarball
73-
if: github.repository == 'stainless-sdks/gradient-typescript'
74-
env:
75-
URL: https://pkg.stainless.com/s?subpackage=mcp-server
76-
AUTH: ${{ steps.github-oidc.outputs.github_token }}
77-
SHA: ${{ github.sha }}
78-
BASE_PATH: packages/mcp-server
79-
run: ./scripts/utils/upload-artifact.sh
8071
test:
8172
timeout-minutes: 10
8273
name: test
@@ -88,13 +79,10 @@ jobs:
8879
- name: Set up Node
8980
uses: actions/setup-node@v4
9081
with:
91-
node-version: '22'
82+
node-version: '20'
9283

9384
- name: Bootstrap
9485
run: ./scripts/bootstrap
9586

96-
- name: Build
97-
run: ./scripts/build
98-
9987
- name: Run tests
10088
run: ./scripts/test

.github/workflows/publish-npm.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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/digitalocean/gradient-typescript/actions/workflows/publish-npm.yml
4+
name: Publish NPM
5+
on:
6+
workflow_dispatch:
7+
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
publish:
13+
name: publish
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '20'
23+
24+
- name: Install dependencies
25+
run: |
26+
yarn install
27+
28+
- name: Publish to NPM
29+
run: |
30+
bash ./bin/publish-npm
31+
env:
32+
NPM_TOKEN: ${{ secrets.GRADIENT_NPM_TOKEN || secrets.NPM_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'digitalocean/gradient-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment
20+
env:
21+
NPM_TOKEN: ${{ secrets.GRADIENT_NPM_TOKEN || secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ dist
77
dist-deno
88
/*.tgz
99
.idea/
10-
dist-bundle
11-
*.dxt
10+

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CHANGELOG.md
44
/deno
55

66
# don't format tsc output, will break source maps
7-
dist
7+
/dist

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0-alpha.1"
3+
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 170
1+
configured_endpoints: 173
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/digitalocean%2Fgradient-621c3ebf5011c5ca508f78fccbea17de4ca6b35bfe99578c1ae2265021578d6f.yml
33
openapi_spec_hash: e29d14e3e4679fcf22b3e760e49931b1
4-
config_hash: 6c8d569b60ae6536708a165b72ff838f
4+
config_hash: 3d425c415b7f7ab581418b43eb521cb3

CHANGELOG.md

Lines changed: 161 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ If you’d like to use the repository from source, you can either install from g
4242
To install via git:
4343

4444
```sh
45-
$ npm install git+ssh://git@github.com:stainless-sdks/gradient-typescript.git
45+
$ npm install git+ssh://git@github.com:digitalocean/gradient-typescript.git
4646
```
4747

4848
Alternatively, to link a local copy of the repo:
4949

5050
```sh
5151
# Clone
52-
$ git clone https://www.github.com/stainless-sdks/gradient-typescript
52+
$ git clone https://www.github.com/digitalocean/gradient-typescript
5353
$ cd gradient-typescript
5454

5555
# With yarn
@@ -91,3 +91,17 @@ To format and fix all lint issues automatically:
9191
```sh
9292
$ yarn fix
9393
```
94+
95+
## Publishing and releases
96+
97+
Changes made to this repository via the automated release PR pipeline should publish to npm automatically. If
98+
the changes aren't made through the automated pipeline, you may want to make releases manually.
99+
100+
### Publish with a GitHub workflow
101+
102+
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/digitalocean/gradient-typescript/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up.
103+
104+
### Publish manually
105+
106+
If you need to manually release a package, you can run the `bin/publish-npm` script with an `NPM_TOKEN` set on
107+
the environment.

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ It is generated with [Stainless](https://www.stainless.com/).
1111
## Installation
1212

1313
```sh
14-
npm install git+ssh://git@github.com:stainless-sdks/gradient-typescript.git
14+
npm install @digitalocean/gradient
1515
```
1616

17-
> [!NOTE]
18-
> Once this package is [published to npm](https://www.stainless.com/docs/guides/publish), this will become: `npm install @digitalocean/gradient`
19-
2017
## Usage
2118

2219
The full API of this library can be found in [api.md](api.md).
@@ -379,7 +376,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
379376

380377
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
381378

382-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/gradient-typescript/issues) with questions, bugs, or suggestions.
379+
We are keen for your feedback; please open an [issue](https://www.github.com/digitalocean/gradient-typescript/issues) with questions, bugs, or suggestions.
383380

384381
## Requirements
385382

0 commit comments

Comments
 (0)