Skip to content

Commit 24440c5

Browse files
authored
Clean up
1 parent ebe1648 commit 24440c5

3 files changed

Lines changed: 40 additions & 12 deletions

File tree

.github/actions/azdo-build/action.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# API
2+
# Outputs:
3+
# - version
4+
# - version-type
5+
# Artifacts:
6+
# - tarball, npm pack of all 6 packages: core, api, component, directlinespeech-sdk, bundle, fluent-theme
7+
# - bundle-iife, /bundle/dist/webchat*.js
8+
# - bundle-esm, /bundle/static/
9+
# - fluent-theme-iife, /fluent-theme/dist/
10+
# - fluent-theme-esm, /fluent-theme/static/
11+
# - sbom, *.spdx.json (optional)
12+
113
name: 'Build via AzDO'
214
description: Run a build pipeline via Azure DevOps and download the build artifact
315

@@ -54,10 +66,12 @@ runs:
5466
if ! command -v az > /dev/null; then
5567
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
5668
fi
69+
shell: bash
5770

71+
- name: Install yq
72+
run: |
5873
if ! command -v jq > /dev/null; then
5974
sudo apt-get update
60-
# sudo apt-get install -y icu jq
6175
sudo apt-get install -y jq
6276
fi
6377
shell: bash
@@ -103,12 +117,12 @@ runs:
103117
echo "url=$RUN_URL" | tee --append $GITHUB_OUTPUT
104118
shell: bash
105119

106-
# Temporarily not running pipeline but getting from existing result
120+
# For testing: temporarily getting from existing pipeline result, instead of running
107121
# - id: run-pipeline
108122
# name: Run pipeline
109123
# run: |
110-
# echo run-id=424951 | tee --append $GITHUB_OUTPUT
111-
# echo url=https://fuselabs.visualstudio.com/531382a8-71ae-46c8-99eb-9512ccb91a43/_apis/build/Builds/424951 | tee --append $GITHUB_OUTPUT
124+
# echo run-id=xxx | tee --append $GITHUB_OUTPUT
125+
# echo url=https://xxx.visualstudio.com/12345678-1234-5678-abcd-12345678abcd/_apis/build/Builds/xxx | tee --append $GITHUB_OUTPUT
112126
# shell: bash
113127

114128
- name: Wait for pipeline completion
@@ -199,12 +213,6 @@ runs:
199213
echo "Artifact downloaded successfully"
200214
shell: bash
201215

202-
# - name: Upload artifact
203-
# uses: actions/upload-artifact@v6
204-
# with:
205-
# name: ${{ inputs.artifact-name }}
206-
# path: ./artifact-download/
207-
208216
- id: get-version
209217
name: Get version
210218
run: |

.github/actions/local-build/action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# This GitHub actions must output with the followings.
2+
#
3+
# Outputs:
4+
# - version, from package.json/version
5+
# - version-type, either "prerelease" or "production"
6+
#
7+
# Artifacts:
8+
# - tarball, pack of 6 packages: core, api, component, directlinespeech-sdk, bundle, fluent-theme
9+
# - bundle-iife, /bundle/dist/webchat*.js
10+
# - bundle-esm, /bundle/static/
11+
# - fluent-theme-iife, /fluent-theme/dist/
12+
# - fluent-theme-esm, /fluent-theme/static/
13+
# - sbom, *.spdx.json (optional)
14+
115
name: 'Build via AzDO'
216
description: Run a build pipeline via Azure DevOps and download the build artifact
317

@@ -59,12 +73,15 @@ runs:
5973
--workspace=./packages/api \
6074
--workspace=./packages/component \
6175
--workspace=./packages/bundle \
76+
--workspace=./packages/directlinespeech \
6277
--workspace=./packages/fluent-theme
6378
shell: bash
6479

80+
# TODO: Currently, SBOM is broken due to adaptivecards@3.0.5 and swiper.
6581
# - name: Generate SBOM
6682
# # --workspace has no effect, the resulting SBOM still contains other packages in the workspace
6783
# run: npm sbom --package-lock-only --sbom-format spdx --sbom-type library | tee ./sbom.spdx.json
84+
# shell: bash
6885

6986
- uses: actions/upload-artifact@v7
7087
with:

.github/workflows/create-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: 🚀 Create release
22

33
on:
4-
push: # Temporarily added for testing
5-
branches: feat-create-request
4+
push:
5+
branches:
6+
- feat-create-request # Temporarily added for testing
7+
- main
68
workflow_dispatch:
79
inputs:
810
local-build:
@@ -21,6 +23,7 @@ defaults:
2123

2224
env:
2325
build-on: ${{ case(inputs.local-build || false, 'local', 'azdo') }}
26+
# Force running build locally when pushing to `main` branch.
2427
# build-on: local
2528
node-version: 22
2629

0 commit comments

Comments
 (0)