Skip to content

Commit be01c2f

Browse files
authored
Merge pull request #755 from acacode/prepare-13.0.4
Prepare 13.0.4
2 parents 935a3a5 + 0507aa6 commit be01c2f

File tree

4 files changed

+73
-49
lines changed

4 files changed

+73
-49
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Builds, tests & co
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
6+
release:
7+
types:
8+
- published
9+
10+
permissions: read-all
611

712
jobs:
813
build-and-test:
@@ -26,3 +31,26 @@ jobs:
2631

2732
- name: Run the tests
2833
run: yarn test-all
34+
35+
publish:
36+
if: github.event_name == 'release'
37+
38+
needs:
39+
- build-and-test
40+
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- name: Checkout tree
45+
uses: actions/checkout@v4
46+
47+
- name: Set-up Node.js
48+
uses: actions/setup-node@v4
49+
with:
50+
node-version: 22
51+
check-latest: true
52+
53+
- name: Publish
54+
run: yarn npm publish --tolerate-republish
55+
env:
56+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.yarnrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
defaultSemverRangePrefix: ""
2+
13
nodeLinker: node-modules
24

5+
npmRegistries:
6+
//registry.npmjs.org:
7+
npmAuthToken: "${NPM_AUTH_TOKEN:''}"
8+
39
preferInteractive: true
410

511
yarnPath: .yarn/releases/yarn-4.2.2.cjs

package.json

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
11
{
22
"name": "swagger-typescript-api",
3-
"version": "13.0.3",
4-
"description": "Generate typescript/javascript api from swagger schema",
5-
"keywords": [
6-
"openapi",
7-
"swagger",
8-
"typescript",
9-
"api",
10-
"javascript",
11-
"rest",
12-
"codegen",
13-
"generation",
14-
"http"
15-
],
3+
"version": "13.0.4",
4+
"description": "Generate TypeScript/JavaScript API from Swagger schema",
165
"homepage": "https://github.com/acacode/swagger-typescript-api",
17-
"bugs": {
18-
"url": "https://github.com/acacode/swagger-typescript-api/issues"
19-
},
20-
"repository": {
21-
"type": "git",
22-
"url": "git://github.com/acacode/swagger-typescript-api"
23-
},
6+
"bugs": "https://github.com/acacode/swagger-typescript-api/issues",
7+
"repository": "github:acacode/swagger-typescript-api",
248
"license": "MIT",
25-
"author": "acacode",
26-
"main": "src/index.js",
27-
"typings": "./index.d.ts",
9+
"author": "Sergey Volkov <[email protected]>",
10+
"contributors": [
11+
"Sora Morimoto <[email protected]>"
12+
],
13+
"main": "./src/index.js",
14+
"types": "./index.d.ts",
2815
"bin": {
29-
"sta": "index.js",
30-
"swagger-typescript-api": "index.js"
16+
"sta": "./index.js",
17+
"swagger-typescript-api": "./index.js"
3118
},
3219
"files": [
20+
"cli",
3321
"src",
34-
"index.js",
35-
"index.d.ts",
3622
"templates",
37-
"cli",
38-
"LICENSE"
23+
"index.d.ts",
24+
"index.js"
3925
],
4026
"scripts": {
4127
"ci": "biome ci .",
@@ -129,5 +115,9 @@
129115
"packageManager": "[email protected]",
130116
"engines": {
131117
"node": ">=18.0.0"
118+
},
119+
"publishConfig": {
120+
"access": "public",
121+
"registry": "https://registry.npmjs.org"
132122
}
133123
}

yarn.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ __metadata:
66
cacheKey: 10c0
77

88
"@babel/code-frame@npm:^7.0.0":
9-
version: 7.24.2
10-
resolution: "@babel/code-frame@npm:7.24.2"
9+
version: 7.24.6
10+
resolution: "@babel/code-frame@npm:7.24.6"
1111
dependencies:
12-
"@babel/highlight": "npm:^7.24.2"
12+
"@babel/highlight": "npm:^7.24.6"
1313
picocolors: "npm:^1.0.0"
14-
checksum: 10c0/d1d4cba89475ab6aab7a88242e1fd73b15ecb9f30c109b69752956434d10a26a52cbd37727c4eca104b6d45227bd1dfce39a6a6f4a14c9b2f07f871e968cf406
14+
checksum: 10c0/c93c6d1763530f415218c31d07359364397f19b70026abdff766164c21ed352a931cf07f3102c5fb9e04792de319e332d68bcb1f7debef601a02197f90f9ba24
1515
languageName: node
1616
linkType: hard
1717

18-
"@babel/helper-validator-identifier@npm:^7.24.5":
19-
version: 7.24.5
20-
resolution: "@babel/helper-validator-identifier@npm:7.24.5"
21-
checksum: 10c0/05f957229d89ce95a137d04e27f7d0680d84ae48b6ad830e399db0779341f7d30290f863a93351b4b3bde2166737f73a286ea42856bb07c8ddaa95600d38645c
18+
"@babel/helper-validator-identifier@npm:^7.24.6":
19+
version: 7.24.6
20+
resolution: "@babel/helper-validator-identifier@npm:7.24.6"
21+
checksum: 10c0/d29d2e3fca66c31867a009014169b93f7bc21c8fc1dd7d0b9d85d7a4000670526ff2222d966febb75a6e12f9859a31d1e75b558984e28ecb69651314dd0a6fd1
2222
languageName: node
2323
linkType: hard
2424

25-
"@babel/highlight@npm:^7.24.2":
26-
version: 7.24.5
27-
resolution: "@babel/highlight@npm:7.24.5"
25+
"@babel/highlight@npm:^7.24.6":
26+
version: 7.24.6
27+
resolution: "@babel/highlight@npm:7.24.6"
2828
dependencies:
29-
"@babel/helper-validator-identifier": "npm:^7.24.5"
29+
"@babel/helper-validator-identifier": "npm:^7.24.6"
3030
chalk: "npm:^2.4.2"
3131
js-tokens: "npm:^4.0.0"
3232
picocolors: "npm:^1.0.0"
33-
checksum: 10c0/e98047d3ad24608bfa596d000c861a2cc875af897427f2833b91a4e0d4cead07301a7ec15fa26093dcd61e036e2eed2db338ae54f93016fe0dc785fadc4159db
33+
checksum: 10c0/5bbc31695e5d44e97feb267f7aaf4c52908560d184ffeb2e2e57aae058d40125592931883889413e19def3326895ddb41ff45e090fa90b459d8c294b4ffc238c
3434
languageName: node
3535
linkType: hard
3636

@@ -850,9 +850,9 @@ __metadata:
850850
linkType: hard
851851

852852
"picocolors@npm:^1.0.0":
853-
version: 1.0.0
854-
resolution: "picocolors@npm:1.0.0"
855-
checksum: 10c0/20a5b249e331c14479d94ec6817a182fd7a5680debae82705747b2db7ec50009a5f6648d0621c561b0572703f84dbef0858abcbd5856d3c5511426afcb1961f7
853+
version: 1.0.1
854+
resolution: "picocolors@npm:1.0.1"
855+
checksum: 10c0/c63cdad2bf812ef0d66c8db29583802355d4ca67b9285d846f390cc15c2f6ccb94e8cb7eb6a6e97fc5990a6d3ad4ae42d86c84d3146e667c739a4234ed50d400
856856
languageName: node
857857
linkType: hard
858858

@@ -1109,8 +1109,8 @@ __metadata:
11091109
swagger2openapi: "npm:^7.0.8"
11101110
typescript: "npm:5.4.5"
11111111
bin:
1112-
sta: index.js
1113-
swagger-typescript-api: index.js
1112+
sta: ./index.js
1113+
swagger-typescript-api: ./index.js
11141114
languageName: unknown
11151115
linkType: soft
11161116

0 commit comments

Comments
 (0)