Skip to content

Commit 48b8076

Browse files
committed
Merge branch 'main' of https://github.com/Bandwidth/node-sdk into SWI-9388
2 parents 6544b56 + 10b768b commit 48b8076

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
deploy:
1014
name: Deploy SDK to NPM
@@ -48,9 +52,12 @@ jobs:
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)
@@ -73,10 +80,8 @@ jobs:
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()

custom_templates/package.mustache

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
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}}
@@ -42,10 +43,8 @@
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
}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
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": {
@@ -38,5 +39,8 @@
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
}

0 commit comments

Comments
 (0)