Skip to content

Commit d849bff

Browse files
feat(api): manual updates
1 parent 56d5f57 commit d849bff

File tree

6 files changed

+4
-55
lines changed

6 files changed

+4
-55
lines changed

.github/workflows/create-releases.yml

-7
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,3 @@ jobs:
3232
run: |
3333
yarn install
3434
35-
- name: Publish to NPM
36-
if: ${{ steps.release.outputs.releases_created }}
37-
run: |
38-
bash ./bin/publish-npm
39-
env:
40-
NPM_TOKEN: ${{ secrets.GITPOD_NPM_TOKEN || secrets.NPM_TOKEN }}
41-

.github/workflows/publish-npm.yml

-28
This file was deleted.

.github/workflows/release-doctor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
22-
NPM_TOKEN: ${{ secrets.GITPOD_NPM_TOKEN || secrets.NPM_TOKEN }}
2322

CONTRIBUTING.md

-14
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,3 @@ 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/gitpod-io/gitpod-sdk-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

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
1111
## Installation
1212

1313
```sh
14-
npm install @gitpod/sdk
14+
npm install git+ssh://[email protected]:gitpod-io/gitpod-sdk-typescript.git
1515
```
1616

17+
> [!NOTE]
18+
> Once this package is [published to npm](https://app.stainlessapi.com/docs/guides/publish), this will become: `npm install @gitpod/sdk`
19+
1720
## Usage
1821

1922
The full API of this library can be found in [api.md](api.md).

bin/check-release-environment

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ if [ -z "${STAINLESS_API_KEY}" ]; then
66
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.")
77
fi
88

9-
if [ -z "${NPM_TOKEN}" ]; then
10-
errors+=("The GITPOD_NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
11-
fi
12-
139
lenErrors=${#errors[@]}
1410

1511
if [[ lenErrors -gt 0 ]]; then

0 commit comments

Comments
 (0)