File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed
Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 55 types :
66 - published
77
8+ permissions :
9+ id-token : write
10+ contents : read
11+
812jobs :
913 deploy :
1014 name : Deploy SDK to NPM
4852 - name : Setup Node
4953 uses : actions/setup-node@v6
5054 with :
51- node-version : 24
55+ node-version : 20
5256 registry-url : " https://registry.npmjs.org"
5357
58+ - name : Update NPM
59+ run : npm install -g npm@latest
60+
5461 - name : Set OpenAPI Generator Version
5562 run : |
5663 OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json)
7380
7481 - name : Publish npm Package
7582 run : |
76- npm version $PACKAGE_VERSION --no-git-tag-version --allow-same-version
83+ npm version $PACKAGE_VERSION --no-git-tag-version
7784 npm publish --access public
78- env :
79- NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
8085
8186 - uses : Bandwidth/build-notify-slack-action@v2
8287 if : always()
Original file line number Diff line number Diff line change 11{
22 " name" : " {{npmName}}" ,
3- " version" : " {{npmVersion}} " ,
3+ " version" : " 1.0.0 " ,
44 " description" : " OpenAPI client for {{npmName}}" ,
55 " author" : " OpenAPI-Generator Contributors" ,
66 " repository" : {
77 " type" : " git" ,
8- " url" : " git+ https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}.git "
8+ " url" : " https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}"
99 } ,
10+ "homepage": "https://github.com/bandwidth/node-numbers",
1011 "keywords": [
1112 "axios",
1213 "typescript",
1314 "openapi-client",
1415 "openapi-generator",
1516 "{ {npmName} }"
1617 ],
17- "license": "Unlicense ",
18+ "license": "MIT ",
1819 "main": "./dist/index.js",
1920 "typings": "./dist/index.d.ts",
2021{ {#supportsES6} }
4243 " jest-extended" : " ^4.0.2" ,
4344 " ts-jest" : " ^29.1.1" ,
4445 " typescript" : " ^5.9.0"
45- } { {#npmRepository} },{ {/npmRepository} }
46- { {#npmRepository} }
46+ } ,
4747 "publishConfig": {
48- " registry " : " {{npmRepository}} "
48+ " access " : " public "
4949 }
50- { {/npmRepository} }
5150}
Original file line number Diff line number Diff line change 55 "author" : " OpenAPI-Generator Contributors" ,
66 "repository" : {
77 "type" : " git" ,
8- "url" : " git+ https://github.com/Bandwidth/node-sdk.git "
8+ "url" : " https://github.com/Bandwidth/node-sdk"
99 },
10+ "homepage" : " https://github.com/bandwidth/node-numbers" ,
1011 "keywords" : [
1112 " axios" ,
1213 " typescript" ,
1314 " openapi-client" ,
1415 " openapi-generator" ,
1516 " bandwidth-sdk"
1617 ],
17- "license" : " Unlicense " ,
18+ "license" : " MIT " ,
1819 "main" : " ./dist/index.js" ,
1920 "typings" : " ./dist/index.d.ts" ,
2021 "scripts" : {
3839 "jest-extended" : " ^4.0.2" ,
3940 "ts-jest" : " ^29.1.1" ,
4041 "typescript" : " ^5.9.0"
42+ },
43+ "publishConfig" : {
44+ "access" : " public"
4145 }
4246}
You can’t perform that action at this time.
0 commit comments