Skip to content

Commit dc5ca57

Browse files
committed
update package name, add github action to deploy
1 parent 069bb8b commit dc5ca57

3 files changed

Lines changed: 67 additions & 45 deletions

File tree

.github/workflows/npm.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: publish-to-npm
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
registry-url: https://registry.npmjs.org/
18+
- run: npm ci --ignore-scripts
19+
- run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.openapi-generator-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
#!docs/README.md
2424

2525
README.md
26+
package.json

package.json

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"name": "hello_asso_api",
3-
"version": "public",
4-
"description": "HelloAsso auto-generated SDK",
5-
"license": "Unlicense",
6-
"main": "dist/index.js",
7-
"scripts": {
8-
"build": "babel src -d dist",
9-
"prepare": "npm run build",
10-
"test": "mocha --require @babel/register --recursive"
11-
},
12-
"browser": {
13-
"fs": false
14-
},
15-
"dependencies": {
16-
"@babel/cli": "^7.0.0",
17-
"superagent": "^5.3.0"
18-
},
19-
"devDependencies": {
20-
"@babel/core": "^7.0.0",
21-
"@babel/plugin-proposal-class-properties": "^7.0.0",
22-
"@babel/plugin-proposal-decorators": "^7.0.0",
23-
"@babel/plugin-proposal-do-expressions": "^7.0.0",
24-
"@babel/plugin-proposal-export-default-from": "^7.0.0",
25-
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
26-
"@babel/plugin-proposal-function-bind": "^7.0.0",
27-
"@babel/plugin-proposal-function-sent": "^7.0.0",
28-
"@babel/plugin-proposal-json-strings": "^7.0.0",
29-
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
30-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
31-
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
32-
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
33-
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
34-
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
35-
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
36-
"@babel/plugin-syntax-import-meta": "^7.0.0",
37-
"@babel/preset-env": "^7.0.0",
38-
"@babel/register": "^7.0.0",
39-
"expect.js": "^0.3.1",
40-
"mocha": "^8.0.1",
41-
"sinon": "^7.2.0"
42-
},
43-
"files": [
44-
"dist"
45-
]
46-
}
2+
"name": "helloasso-node",
3+
"version": "public",
4+
"description": "HelloAsso auto-generated SDK",
5+
"license": "GPL-3.0-or-later",
6+
"main": "dist/index.js",
7+
"scripts": {
8+
"build": "babel src -d dist",
9+
"prepare": "npm run build",
10+
"test": "mocha --require @babel/register --recursive"
11+
},
12+
"browser": {
13+
"fs": false
14+
},
15+
"dependencies": {
16+
"@babel/cli": "^7.0.0",
17+
"superagent": "^5.3.0"
18+
},
19+
"devDependencies": {
20+
"@babel/core": "^7.0.0",
21+
"@babel/plugin-proposal-class-properties": "^7.0.0",
22+
"@babel/plugin-proposal-decorators": "^7.0.0",
23+
"@babel/plugin-proposal-do-expressions": "^7.0.0",
24+
"@babel/plugin-proposal-export-default-from": "^7.0.0",
25+
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
26+
"@babel/plugin-proposal-function-bind": "^7.0.0",
27+
"@babel/plugin-proposal-function-sent": "^7.0.0",
28+
"@babel/plugin-proposal-json-strings": "^7.0.0",
29+
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
30+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
31+
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
32+
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
33+
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
34+
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
35+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
36+
"@babel/plugin-syntax-import-meta": "^7.0.0",
37+
"@babel/preset-env": "^7.0.0",
38+
"@babel/register": "^7.0.0",
39+
"expect.js": "^0.3.1",
40+
"mocha": "^8.0.1",
41+
"sinon": "^7.2.0"
42+
},
43+
"files": [
44+
"dist"
45+
]
46+
}

0 commit comments

Comments
 (0)