eve-esi-client-ts 1.0.3 → 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.
- package/.github/workflows/generate.yml +35 -21
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/package.json +1 -1
|
@@ -16,23 +16,52 @@ jobs:
|
|
|
16
16
|
- uses: actions/checkout@v4
|
|
17
17
|
with:
|
|
18
18
|
fetch-depth: 0
|
|
19
|
-
- name:
|
|
20
|
-
id:
|
|
19
|
+
- name: Get version
|
|
20
|
+
id: version
|
|
21
21
|
run: |
|
|
22
22
|
git config --global user.name "github-actions[bot]"
|
|
23
23
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
24
|
-
VERSION=$(
|
|
24
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
25
25
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
26
|
-
- name:
|
|
26
|
+
- name: Download spec
|
|
27
|
+
run: |
|
|
28
|
+
curl -L https://esi.evetech.net/latest/swagger.json -o swagger.json
|
|
29
|
+
- name: Generate old Client
|
|
27
30
|
uses: openapi-generators/openapitools-generator-action@v1
|
|
28
31
|
with:
|
|
29
32
|
generator: typescript-axios
|
|
30
|
-
openapi-
|
|
31
|
-
command-args: --minimal-update --additional-properties=supportsES6=true,npmName=eve-esi-client-ts,npmVersion=${{ steps.
|
|
33
|
+
openapi-file: swagger.json
|
|
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
|
|
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
|
|
45
|
+
fi
|
|
46
|
+
- name: Bump version
|
|
47
|
+
id: bump
|
|
48
|
+
run: |
|
|
49
|
+
git reset --hard
|
|
50
|
+
VERSION=$(npm version patch)
|
|
51
|
+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
52
|
+
- name: Generate new Client
|
|
53
|
+
uses: openapi-generators/openapitools-generator-action@v1
|
|
54
|
+
with:
|
|
55
|
+
generator: typescript-axios
|
|
56
|
+
openapi-file: swagger.json
|
|
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
|
|
58
|
+
- name: Process new output
|
|
59
|
+
run: |
|
|
60
|
+
rsync -a --remove-source-files 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
|
|
36
65
|
- name: Set up Node.js
|
|
37
66
|
uses: actions/setup-node@v4
|
|
38
67
|
with:
|
|
@@ -42,22 +71,7 @@ jobs:
|
|
|
42
71
|
run: |
|
|
43
72
|
rm -rf node_modules package-lock.json
|
|
44
73
|
npm install
|
|
45
|
-
- name: Commit new client
|
|
46
|
-
id: commit
|
|
47
|
-
env:
|
|
48
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
-
run: |
|
|
50
|
-
git add .
|
|
51
|
-
if git diff --cached --quiet; then
|
|
52
|
-
echo "No changes to commit."
|
|
53
|
-
echo "committed=false" >> $GITHUB_OUTPUT
|
|
54
|
-
else
|
|
55
|
-
git commit -am "Auto generated: ${{ steps.bump.outputs.version }}"
|
|
56
|
-
git push
|
|
57
|
-
echo "committed=true" >> $GITHUB_OUTPUT
|
|
58
|
-
fi
|
|
59
74
|
- name: Publish to NPM
|
|
60
|
-
if: steps.commit.outputs.committed == 'true'
|
|
61
75
|
run: npm publish --provenance --access public
|
|
62
76
|
env:
|
|
63
77
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.14.0
|
|
1
|
+
7.14.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## eve-esi-client-ts@v1.0.
|
|
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.
|
|
39
|
+
npm install eve-esi-client-ts@v1.0.5 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|