eve-esi-client-ts 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,19 +23,25 @@ jobs:
23
23
  git config --global user.email "github-actions[bot]@users.noreply.github.com"
24
24
  VERSION=$(node -p "require('./package.json').version")
25
25
  echo "version=$VERSION" >> "$GITHUB_OUTPUT"
26
+ - name: Download spec
27
+ run: |
28
+ curl -L https://esi.evetech.net/latest/swagger.json -o swagger.json
26
29
  - name: Generate old Client
27
30
  uses: openapi-generators/openapitools-generator-action@v1
28
31
  with:
29
32
  generator: typescript-axios
30
- openapi-url: https://esi.evetech.net/latest/swagger.json
33
+ openapi-file: swagger.json
31
34
  command-args: --minimal-update --additional-properties=supportsES6=true,npmName=eve-esi-client-ts,npmVersion=${{ steps.version.outputs.version }},licenseName=MIT --git-user-id=${{ github.repository_owner }} --git-repo-id=${{ github.event.repository.name }} --git-host=github.com
32
35
  - name: Process output
33
36
  run: |
34
37
  rsync -a --remove-source-files typescript-axios-client/ .
35
38
  rm -rf typescript-axios-client
36
- if git diff --quiet; then
37
- echo "No changes after client generation. Exiting."
38
- exit 0
39
+ git add .
40
+ git reset -- swagger.json
41
+ git diff --cached
42
+ if git diff --cached --quiet; then
43
+ echo "No changes after client generation. Exiting."
44
+ exit 0
39
45
  fi
40
46
  - name: Bump version
41
47
  id: bump
@@ -47,12 +53,15 @@ jobs:
47
53
  uses: openapi-generators/openapitools-generator-action@v1
48
54
  with:
49
55
  generator: typescript-axios
50
- openapi-url: https://esi.evetech.net/latest/swagger.json
56
+ openapi-file: swagger.json
51
57
  command-args: --minimal-update --additional-properties=supportsES6=true,npmName=eve-esi-client-ts,npmVersion=${{ steps.bump.outputs.version }},licenseName=MIT --git-user-id=${{ github.repository_owner }} --git-repo-id=${{ github.event.repository.name }} --git-host=github.com
52
58
  - name: Process new output
53
59
  run: |
54
60
  rsync -a --remove-source-files typescript-axios-client/ .
55
- rm -rf typescript-axios-client
61
+ rm -rf typescript-axios-client swagger.json
62
+ git add .
63
+ git commit -m "Auto generate: ${{ steps.bump.outputs.version }}"
64
+ git push
56
65
  - name: Set up Node.js
57
66
  uses: actions/setup-node@v4
58
67
  with:
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## eve-esi-client-ts@v1.0.4
1
+ ## eve-esi-client-ts@v1.0.5
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install eve-esi-client-ts@v1.0.4 --save
39
+ npm install eve-esi-client-ts@v1.0.5 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-esi-client-ts",
3
- "version": "v1.0.4",
3
+ "version": "v1.0.5",
4
4
  "description": "OpenAPI client for eve-esi-client-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {