Skip to content

Commit 328cbd6

Browse files
authored
Fix SRI hash and debug CHANGELOG.md
1 parent 1e61796 commit 328cbd6

File tree

1 file changed

+6
-141
lines changed

1 file changed

+6
-141
lines changed

.github/workflows/create-release.yml

Lines changed: 6 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -25,78 +25,6 @@ env:
2525
node-version: 22
2626

2727
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-
10028
build:
10129
environment:
10230
deployment: false
@@ -148,71 +76,6 @@ jobs:
14876
echo version=${{ case(env.build-on == 'local', steps.local-build.outputs.version, steps.azdo-build.outputs.version) }} | tee --append $GITHUB_OUTPUT
14977
echo version-type=${{ case(env.build-on == 'local', steps.local-build.outputs.version-type, steps.azdo-build.outputs.version-type) }} | tee --append $GITHUB_OUTPUT
15078
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-
21679
upload-changelog:
21780
name: Upload changelog
21881
needs: build
@@ -231,7 +94,9 @@ jobs:
23194

23295
- if: needs.build.outputs.version-type != 'production'
23396
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
235100
236101
- name: Extract latest entry
237102
run: npx keep-a-changelog --format markdownlint --latest-release-full | tee ./CHANGELOG.latest.md
@@ -288,9 +153,9 @@ jobs:
288153
run: |
289154
echo git-short-sha=`echo ${{ github.sha }} | cut -c 1-7` | tee --append $GITHUB_OUTPUT
290155
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
294159
295160
- name: Build release notes
296161
run: |

0 commit comments

Comments
 (0)