eve-esi-client-ts 1.0.3 → 1.0.4
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 +24 -19
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/package.json +1 -1
|
@@ -16,20 +16,40 @@ 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=$(node -p "require('./package.json').version")
|
|
25
|
+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
26
|
+
- name: Generate old Client
|
|
27
|
+
uses: openapi-generators/openapitools-generator-action@v1
|
|
28
|
+
with:
|
|
29
|
+
generator: typescript-axios
|
|
30
|
+
openapi-url: https://esi.evetech.net/latest/swagger.json
|
|
31
|
+
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
|
+
- name: Process output
|
|
33
|
+
run: |
|
|
34
|
+
rsync -a --remove-source-files typescript-axios-client/ .
|
|
35
|
+
rm -rf typescript-axios-client
|
|
36
|
+
if git diff --quiet; then
|
|
37
|
+
echo "No changes after client generation. Exiting."
|
|
38
|
+
exit 0
|
|
39
|
+
fi
|
|
40
|
+
- name: Bump version
|
|
41
|
+
id: bump
|
|
42
|
+
run: |
|
|
43
|
+
git reset --hard
|
|
24
44
|
VERSION=$(npm version patch)
|
|
25
45
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
26
|
-
- name: Generate Client
|
|
46
|
+
- name: Generate new Client
|
|
27
47
|
uses: openapi-generators/openapitools-generator-action@v1
|
|
28
48
|
with:
|
|
29
49
|
generator: typescript-axios
|
|
30
50
|
openapi-url: https://esi.evetech.net/latest/swagger.json
|
|
31
51
|
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
|
|
32
|
-
- name: Process output
|
|
52
|
+
- name: Process new output
|
|
33
53
|
run: |
|
|
34
54
|
rsync -a --remove-source-files typescript-axios-client/ .
|
|
35
55
|
rm -rf typescript-axios-client
|
|
@@ -42,22 +62,7 @@ jobs:
|
|
|
42
62
|
run: |
|
|
43
63
|
rm -rf node_modules package-lock.json
|
|
44
64
|
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
65
|
- name: Publish to NPM
|
|
60
|
-
if: steps.commit.outputs.committed == 'true'
|
|
61
66
|
run: npm publish --provenance --access public
|
|
62
67
|
env:
|
|
63
68
|
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.4
|
|
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.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|