eve-esi-client-ts 1.0.16 → 1.0.22

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.
@@ -68,19 +68,4 @@ jobs:
68
68
  git add .
69
69
  git commit -m "Auto generate: ${{ steps.bump.outputs.version }}"
70
70
  git push
71
- - name: Set up Node.js
72
- if: steps.check.outputs.changed == 'true'
73
- uses: actions/setup-node@v4
74
- with:
75
- node-version: lts/*
76
- registry-url: 'https://registry.npmjs.org'
77
- - name: Install dependencies
78
- if: steps.check.outputs.changed == 'true'
79
- run: |
80
- rm -rf node_modules package-lock.json
81
- npm install
82
- - name: Publish to NPM
83
- if: steps.check.outputs.changed == 'true'
84
- run: npm publish --provenance --access public
85
- env:
86
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
71
+ # Publishing is now handled in a separate workflow (.github/workflows/publish.yml)
@@ -0,0 +1,69 @@
1
+ name: Publish
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows:
6
+ - "Generate Client"
7
+ types:
8
+ - completed
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: write
13
+ id-token: write
14
+
15
+ jobs:
16
+ publish:
17
+ name: Publish to NPM
18
+ runs-on: ubuntu-latest
19
+ if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }}
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ with:
23
+ fetch-depth: 0
24
+
25
+ - name: Check last commit for generation
26
+ id: check_commit
27
+ run: |
28
+ git fetch --prune --unshallow || true
29
+ # If this run was started manually, always attempt to publish
30
+ if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
31
+ echo "changed=true" >> $GITHUB_OUTPUT
32
+ LAST_COMMIT_MSG="(manual run)"
33
+ echo "last_msg<<EOF" >> $GITHUB_OUTPUT
34
+ echo "$LAST_COMMIT_MSG" >> $GITHUB_OUTPUT
35
+ echo "EOF" >> $GITHUB_OUTPUT
36
+ exit 0
37
+ fi
38
+
39
+ LAST_COMMIT_MSG="$(git log -1 --pretty=%B)"
40
+ echo "last_msg<<EOF" >> $GITHUB_OUTPUT
41
+ echo "$LAST_COMMIT_MSG" >> $GITHUB_OUTPUT
42
+ echo "EOF" >> $GITHUB_OUTPUT
43
+ if [[ "$LAST_COMMIT_MSG" == Auto\ generate:* ]]; then
44
+ echo "changed=true" >> $GITHUB_OUTPUT
45
+ else
46
+ echo "changed=false" >> $GITHUB_OUTPUT
47
+ fi
48
+
49
+ - name: No generated changes
50
+ if: steps.check_commit.outputs.changed == 'false'
51
+ run: |
52
+ echo "No generated changes to publish."
53
+
54
+ - name: Set up Node.js
55
+ if: steps.check_commit.outputs.changed == 'true'
56
+ uses: actions/setup-node@v4
57
+ with:
58
+ node-version: lts/*
59
+ registry-url: 'https://registry.npmjs.org'
60
+
61
+ - name: Install dependencies
62
+ if: steps.check_commit.outputs.changed == 'true'
63
+ run: |
64
+ rm -rf node_modules package-lock.json
65
+ npm install
66
+
67
+ - name: Publish to NPM
68
+ if: steps.check_commit.outputs.changed == 'true'
69
+ run: npm publish --provenance --access public
@@ -1 +1 @@
1
- 7.18.0-SNAPSHOT
1
+ 7.20.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## eve-esi-client-ts@1.0.16
1
+ ## eve-esi-client-ts@1.0.22
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@1.0.16 --save
39
+ npm install eve-esi-client-ts@1.0.22 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_