|
25 | 25 | node-version: 22 |
26 | 26 |
|
27 | 27 | jobs: |
28 | | - # build: |
29 | | - # name: Build |
30 | | - # permissions: |
31 | | - # contents: read |
32 | | - # needs: prepare |
33 | | - # runs-on: ubuntu-latest |
34 | | - |
35 | | - # steps: |
36 | | - # - uses: actions/checkout@v6 |
37 | | - |
38 | | - # - uses: actions/setup-node@v6 |
39 | | - # with: |
40 | | - # node-version: ${{ env.node-version }} |
41 | | - |
42 | | - # - run: npm clean-install |
43 | | - |
44 | | - # - name: npm version ${{ needs.prepare.outputs.version }} |
45 | | - # run: | |
46 | | - # npm version ${{ needs.prepare.outputs.version }} \ |
47 | | - # --include-workspace-root \ |
48 | | - # --no-git-tag-version \ |
49 | | - # --no-workspaces-update \ |
50 | | - # --workspaces |
51 | | - |
52 | | - # - env: |
53 | | - # NODE_ENV: production |
54 | | - # run: npm run build |
55 | | - |
56 | | - # - name: Pack as tarball |
57 | | - # run: | |
58 | | - # npm pack \ |
59 | | - # --workspace=./packages/core \ |
60 | | - # --workspace=./packages/api \ |
61 | | - # --workspace=./packages/component \ |
62 | | - # --workspace=./packages/bundle \ |
63 | | - # --workspace=./packages/fluent-theme |
64 | | - |
65 | | - # # - name: Generate SBOM |
66 | | - # # # --workspace has no effect, the resulting SBOM still contains other packages in the workspace |
67 | | - # # run: npm sbom --package-lock-only --sbom-format spdx --sbom-type library | tee ./sbom.spdx.json |
68 | | - |
69 | | - # - uses: actions/upload-artifact@v7 |
70 | | - # with: |
71 | | - # name: tarball |
72 | | - # path: ./*.tgz |
73 | | - |
74 | | - # - uses: actions/upload-artifact@v7 |
75 | | - # with: |
76 | | - # name: bundle-iife |
77 | | - # path: ./packages/bundle/dist/webchat*.js |
78 | | - |
79 | | - # - uses: actions/upload-artifact@v7 |
80 | | - # with: |
81 | | - # name: bundle-esm |
82 | | - # path: ./packages/bundle/static/**/* |
83 | | - |
84 | | - # - uses: actions/upload-artifact@v7 |
85 | | - # with: |
86 | | - # name: fluent-theme-iife |
87 | | - # path: ./packages/fluent-theme/dist/**/* |
88 | | - |
89 | | - # - uses: actions/upload-artifact@v7 |
90 | | - # with: |
91 | | - # name: fluent-theme-esm |
92 | | - # path: ./packages/fluent-theme/static/**/* |
93 | | - |
94 | | - # # - name: Upload SBOM artifact |
95 | | - # # uses: actions/upload-artifact@v7 |
96 | | - # # with: |
97 | | - # # name: sbom |
98 | | - # # path: ./sbom.spdx.json |
99 | | - |
100 | 28 | build: |
101 | 29 | environment: |
102 | 30 | deployment: false |
@@ -148,71 +76,6 @@ jobs: |
148 | 76 | echo version=${{ case(env.build-on == 'local', steps.local-build.outputs.version, steps.azdo-build.outputs.version) }} | tee --append $GITHUB_OUTPUT |
149 | 77 | echo version-type=${{ case(env.build-on == 'local', steps.local-build.outputs.version-type, steps.azdo-build.outputs.version-type) }} | tee --append $GITHUB_OUTPUT |
150 | 78 |
|
151 | | - # - name: Download AzDO build artifact |
152 | | - # uses: actions/download-artifact@v8 |
153 | | - # with: |
154 | | - # name: azdo-artifact |
155 | | - |
156 | | - # - name: Extract artifact (bundle) |
157 | | - # run: | |
158 | | - # mkdir -p ./bundle/ |
159 | | - # cd ./bundle/ |
160 | | - |
161 | | - # tar \ |
162 | | - # --extract \ |
163 | | - # --file=../tgzfiles/botframework-webchat-${{ steps.azdo-build.outputs.version }}.tgz \ |
164 | | - # --strip-component=1 \ |
165 | | - # package/dist/ \ |
166 | | - # package/static/ |
167 | | - |
168 | | - # - name: Extract artifact (fluent-theme) |
169 | | - # run: | |
170 | | - # mkdir -p ./fluent-theme/ |
171 | | - # cd ./fluent-theme/ |
172 | | - |
173 | | - # tar \ |
174 | | - # --extract \ |
175 | | - # --file=../tgzfiles/botframework-webchat-fluent-theme-${{ steps.azdo-build.outputs.version }}.tgz \ |
176 | | - # --strip-component=1 \ |
177 | | - # package/dist/ \ |
178 | | - # package/static/ |
179 | | - |
180 | | - # - name: Upload artifact (tarball) |
181 | | - # uses: actions/upload-artifact@v7 |
182 | | - # with: |
183 | | - # name: tarball |
184 | | - # path: ./tgzfiles/*.tgz |
185 | | - |
186 | | - # - name: Upload artifact (bundle-iife) |
187 | | - # uses: actions/upload-artifact@v7 |
188 | | - # with: |
189 | | - # name: bundle-iife |
190 | | - # path: ./bundle/dist/webchat*.js |
191 | | - |
192 | | - # - name: Upload artifact (bundle-esm) |
193 | | - # uses: actions/upload-artifact@v7 |
194 | | - # with: |
195 | | - # name: bundle-esm |
196 | | - # path: ./bundle/static/ |
197 | | - |
198 | | - # - name: Upload artifact (fluent-theme-iife) |
199 | | - # uses: actions/upload-artifact@v7 |
200 | | - # with: |
201 | | - # name: fluent-theme-iife |
202 | | - # path: ./fluent-theme/dist/ |
203 | | - |
204 | | - # - name: Upload artifact (fluent-theme-esm) |
205 | | - # uses: actions/upload-artifact@v7 |
206 | | - # with: |
207 | | - # name: fluent-theme-esm |
208 | | - # path: ./fluent-theme/static/ |
209 | | - |
210 | | - # - name: Upload artifact (sbom) |
211 | | - # uses: actions/upload-artifact@v7 |
212 | | - # with: |
213 | | - # name: sbom |
214 | | - # path: ./_manifest/spdx_2.2/manifest.spdx.json |
215 | | - |
216 | 79 | upload-changelog: |
217 | 80 | name: Upload changelog |
218 | 81 | needs: build |
|
231 | 94 |
|
232 | 95 | - if: needs.build.outputs.version-type != 'production' |
233 | 96 | name: Tag unreleased as latest |
234 | | - run: npx keep-a-changelog --format markdownlint --release=${{ needs.build.outputs.version }} |
| 97 | + run: | |
| 98 | + npx keep-a-changelog --format markdownlint --release=${{ needs.build.outputs.version }} |
| 99 | + cat CHANGELOG.md |
235 | 100 |
|
236 | 101 | - name: Extract latest entry |
237 | 102 | run: npx keep-a-changelog --format markdownlint --latest-release-full | tee ./CHANGELOG.latest.md |
@@ -288,9 +153,9 @@ jobs: |
288 | 153 | run: | |
289 | 154 | echo git-short-sha=`echo ${{ github.sha }} | cut -c 1-7` | tee --append $GITHUB_OUTPUT |
290 | 155 | echo release-date=`date "+%Y-%m-%d %R:%S"` | tee --append $GITHUB_OUTPUT |
291 | | - echo sha384-es5=`cat webchat-es5.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT |
292 | | - echo sha384-full=`cat webchat.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT |
293 | | - echo sha384-minimal=`cat webchat-minimal.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT |
| 156 | + echo sha384-es5=`cat ./asset/webchat-es5.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT |
| 157 | + echo sha384-full=`cat ./asset/webchat.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT |
| 158 | + echo sha384-minimal=`cat ./asset/webchat-minimal.js | openssl dgst -sha384 -binary | openssl base64 -A` | tee --append $GITHUB_OUTPUT |
294 | 159 |
|
295 | 160 | - name: Build release notes |
296 | 161 | run: | |
|
0 commit comments