Skip to content

Commit cc26078

Browse files
Merge pull request #1 from CASParser/release-please--branches--main--changes--next--components--cas-parser
release: 1.0.0
2 parents 1e6c39a + 24764e9 commit cc26078

File tree

11 files changed

+189
-12
lines changed

11 files changed

+189
-12
lines changed

.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/CASParser/cas-parser-node/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.CAS_PARSER_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 == 'CASParser/cas-parser-node' && (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.CAS_PARSER_NPM_TOKEN || secrets.NPM_TOKEN }}

.release-please-manifest.json

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

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-33841d833a48438cd79a13b2e70eeb61551b67e954ed788209ece1b0f5886e15.yml
33
openapi_spec_hash: 6a784691ea7c8cf7c2987c93f6a2ab25
4-
config_hash: e038b1acdad8015d8d29b65c78c345fa
4+
config_hash: c35d87a285c3e03721211e5585e57e54

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Changelog
2+
3+
## 1.0.0 (2025-08-18)
4+
5+
Full Changelog: [v0.0.1-alpha.0...v1.0.0](https://github.com/CASParser/cas-parser-node/compare/v0.0.1-alpha.0...v1.0.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([1e6c39a](https://github.com/CASParser/cas-parser-node/commit/1e6c39a1be39d9bdb89d50f43c26f178a4f24b39))
10+
* **api:** manual updates ([676d6a3](https://github.com/CASParser/cas-parser-node/commit/676d6a33df8f48f3c72d7589251b8e4616e3e866))
11+
* **api:** manual updates ([76afa40](https://github.com/CASParser/cas-parser-node/commit/76afa403b2222d928d99c5eb3a9229e03e0c1de2))
12+
* **api:** manual updates ([4b9ce92](https://github.com/CASParser/cas-parser-node/commit/4b9ce92d3d6adef435618d31f67679c1cd564a6e))
13+
* **api:** manual updates ([a4c7c4f](https://github.com/CASParser/cas-parser-node/commit/a4c7c4f49bedad0d5f27c4a30845a343985d1702))
14+
15+
16+
### Chores
17+
18+
* add docs to RequestOptions type ([bcdc5af](https://github.com/CASParser/cas-parser-node/commit/bcdc5af6492012646f690cd6e632790411db96eb))
19+
* **client:** improve path param validation ([d9e2f49](https://github.com/CASParser/cas-parser-node/commit/d9e2f4987c13a4e6e56757ccfc8c4f8105f84ff1))
20+
* **internal:** remove redundant imports config ([245bd3d](https://github.com/CASParser/cas-parser-node/commit/245bd3d586a4058218c56e915b29285e11abf795))
21+
* make some internal functions async ([cc8085d](https://github.com/CASParser/cas-parser-node/commit/cc8085d9c43e0ba0c3ff249518e2a3f890da15d0))
22+
* **ts:** reorder package.json imports ([7bd9452](https://github.com/CASParser/cas-parser-node/commit/7bd94525624bb8a8720b43b28bc7a073e60a653b))
23+
* update SDK settings ([d81dccb](https://github.com/CASParser/cas-parser-node/commit/d81dccbdc37c2440374d9e05f5a4d80bc1b16622))
24+
* update SDK settings ([a2f5d4c](https://github.com/CASParser/cas-parser-node/commit/a2f5d4cda1960a8ce0d3c41f8e6d40ec66829aee))

CONTRIBUTING.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ 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://[email protected]:stainless-sdks/cas-parser-typescript.git
45+
$ npm install git+ssh://[email protected]:CASParser/cas-parser-node.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/cas-parser-typescript
53-
$ cd cas-parser-typescript
52+
$ git clone https://www.github.com/CASParser/cas-parser-node
53+
$ cd cas-parser-node
5454

5555
# With yarn
5656
$ yarn link
@@ -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/CASParser/cas-parser-node/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://[email protected]:stainless-sdks/cas-parser-typescript.git
14+
npm install cas-parser
1515
```
1616

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

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

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

369-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/cas-parser-typescript/issues) with questions, bugs, or suggestions.
366+
We are keen for your feedback; please open an [issue](https://www.github.com/CASParser/cas-parser-node/issues) with questions, bugs, or suggestions.
370367

371368
## Requirements
372369

bin/check-release-environment

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
errors=()
4+
5+
if [ -z "${NPM_TOKEN}" ]; then
6+
errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
7+
fi
8+
9+
lenErrors=${#errors[@]}
10+
11+
if [[ lenErrors -gt 0 ]]; then
12+
echo -e "Found the following errors in the release environment:\n"
13+
14+
for error in "${errors[@]}"; do
15+
echo -e "- $error\n"
16+
done
17+
18+
exit 1
19+
fi
20+
21+
echo "The environment is ready to push releases!"
22+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "cas-parser",
3-
"version": "0.0.1-alpha.0",
3+
"version": "1.0.0",
44
"description": "The official TypeScript library for the Cas Parser API",
55
"author": "Cas Parser <[email protected]>",
66
"types": "dist/index.d.ts",
77
"main": "dist/index.js",
88
"type": "commonjs",
9-
"repository": "github:stainless-sdks/cas-parser-typescript",
9+
"repository": "github:CASParser/cas-parser-node",
1010
"license": "Apache-2.0",
1111
"packageManager": "[email protected]",
1212
"files": [

release-please-config.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"packages": {
3+
".": {}
4+
},
5+
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
6+
"include-v-in-tag": true,
7+
"include-component-in-tag": false,
8+
"versioning": "prerelease",
9+
"prerelease": true,
10+
"bump-minor-pre-major": true,
11+
"bump-patch-for-minor-pre-major": false,
12+
"pull-request-header": "Automated Release PR",
13+
"pull-request-title-pattern": "release: ${version}",
14+
"changelog-sections": [
15+
{
16+
"type": "feat",
17+
"section": "Features"
18+
},
19+
{
20+
"type": "fix",
21+
"section": "Bug Fixes"
22+
},
23+
{
24+
"type": "perf",
25+
"section": "Performance Improvements"
26+
},
27+
{
28+
"type": "revert",
29+
"section": "Reverts"
30+
},
31+
{
32+
"type": "chore",
33+
"section": "Chores"
34+
},
35+
{
36+
"type": "docs",
37+
"section": "Documentation"
38+
},
39+
{
40+
"type": "style",
41+
"section": "Styles"
42+
},
43+
{
44+
"type": "refactor",
45+
"section": "Refactors"
46+
},
47+
{
48+
"type": "test",
49+
"section": "Tests",
50+
"hidden": true
51+
},
52+
{
53+
"type": "build",
54+
"section": "Build System"
55+
},
56+
{
57+
"type": "ci",
58+
"section": "Continuous Integration",
59+
"hidden": true
60+
}
61+
],
62+
"release-type": "node",
63+
"extra-files": ["src/version.ts", "README.md"]
64+
}

0 commit comments

Comments
 (0)