File tree Expand file tree Collapse file tree 2 files changed +44
-62
lines changed Expand file tree Collapse file tree 2 files changed +44
-62
lines changed Original file line number Diff line number Diff line change @@ -102,65 +102,4 @@ jobs:
102
102
${{ runner.os }}-cargo-
103
103
104
104
- name : Generate report
105
- run : cargo run report
106
-
107
- detect-changes :
108
- if : startsWith(github.ref, 'refs/tags/v')
109
- needs : report
110
- runs-on : ubuntu-latest
111
- outputs :
112
- cli_changed : ${{ steps.filter.outputs.cli }}
113
- packages_changed : ${{ steps.filter.outputs.packages }}
114
- md_changed : ${{ steps.filter.outputs.md }}
115
- steps :
116
- - uses : actions/checkout@v4
117
- - name : Detect changed paths
118
- id : changes
119
- uses : dorny/paths-filter@v3
120
- with :
121
- base : " main"
122
- filters : |
123
- cli:
124
- - 'cli/**'
125
- packages:
126
- - 'reader/**'
127
- md:
128
- - 'definitions/**'
129
-
130
- publish-ts-reader :
131
- needs : detect-changes
132
- if : startsWith(github.ref, 'refs/tags/v') && needs.detect-changes.outputs.packages_changed == 'true'
133
- defaults :
134
- run :
135
- working-directory : " ./reader/ts"
136
- runs-on : ubuntu-latest
137
- steps :
138
- - uses : actions/checkout@v4
139
- - uses : actions/setup-node@v4
140
- with :
141
- node-version : ' 22.x'
142
- registry-url : ' https://registry.npmjs.org'
143
- - run : npm version from-git --git-tag-version=false
144
- - run : npm ci
145
- - run : npm run build
146
- - run : npm publish
147
- env :
148
- NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
149
-
150
- publish-defintions :
151
- needs : detect-changes
152
- if : startsWith(github.ref, 'refs/tags/v') && needs.detect-changes.outputs.md == 'true'
153
- runs-on : ubuntu-latest
154
- steps :
155
- - name : Checkout Code
156
- uses : actions/checkout@v4
157
-
158
- - name : Create GitHub Release
159
- uses : softprops/action-gh-release@v2
160
- with :
161
- tag_name : ${{ github.ref_name }}
162
- name : Release ${{ github.ref_name }}
163
- files : |
164
- definitions
165
- generate_release_notes : true
166
- make_latest : true
105
+ run : cargo run report
Original file line number Diff line number Diff line change
1
+ name : Publish YML
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ publish-ts-reader :
10
+ if : startsWith(github.ref, 'refs/tags/pkg-') || startsWith(github.ref, 'refs/tags/all-')
11
+ defaults :
12
+ run :
13
+ working-directory : " ./reader/ts"
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-node@v4
18
+ with :
19
+ node-version : ' 22.x'
20
+ registry-url : ' https://registry.npmjs.org'
21
+ - run : npm version from-git --git-tag-version=false
22
+ - run : npm ci
23
+ - run : npm run build
24
+ - run : npm publish
25
+ env :
26
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
27
+
28
+ publish-defintions :
29
+ if : startsWith(github.ref, 'refs/tags/def-') || startsWith(github.ref, 'refs/tags/all-')
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - name : Checkout Code
33
+ uses : actions/checkout@v4
34
+
35
+ - name : Create GitHub Release
36
+ uses : softprops/action-gh-release@v2
37
+ with :
38
+ tag_name : ${{ github.ref_name }}
39
+ name : Release ${{ github.ref_name }}
40
+ files : |
41
+ definitions
42
+ generate_release_notes : true
43
+ make_latest : true
You can’t perform that action at this time.
0 commit comments