Skip to content

Commit 71065bc

Browse files
committed
ci: improve release workflow UX
1 parent e656b47 commit 71065bc

2 files changed

Lines changed: 44 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
78

89
permissions:
910
contents: write
@@ -32,6 +33,22 @@ jobs:
3233
config-file: .github/release-please-config.json
3334
manifest-file: .github/.release-please-manifest.json
3435

36+
- name: Summarize release outcome
37+
env:
38+
RELEASE_CREATED: ${{ steps.release.outputs.release_created }}
39+
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
40+
run: |
41+
{
42+
echo "## Release outcome"
43+
echo
44+
echo "- Release created: ${RELEASE_CREATED:-false}"
45+
if [ -n "${RELEASE_TAG}" ]; then
46+
echo "- Release tag: ${RELEASE_TAG}"
47+
else
48+
echo "- Release tag: none"
49+
fi
50+
} >> "$GITHUB_STEP_SUMMARY"
51+
3552
docker-publish:
3653
if: needs.release.outputs.release_created == 'true'
3754
needs:
@@ -46,19 +63,24 @@ jobs:
4663
with:
4764
fetch-depth: 0
4865

66+
- name: Setup pnpm
67+
uses: pnpm/action-setup@v6
68+
with:
69+
cache: true
70+
cache_dependency_path: frontend/pnpm-lock.yaml
71+
package_json_file: frontend/package.json
72+
4973
- name: Setup Node.js for Docker build
5074
uses: actions/setup-node@v6
5175
with:
5276
node-version-file: ".tool-versions"
53-
cache: npm
54-
cache-dependency-path: frontend/package-lock.json
5577

5678
- name: Install frontend dependencies
57-
run: npm ci
79+
run: pnpm install --frozen-lockfile
5880
working-directory: frontend
5981

6082
- name: Build frontend static assets
61-
run: npm run build
83+
run: pnpm run build
6284
working-directory: frontend
6385

6486
- name: Set up QEMU
@@ -129,3 +151,13 @@ jobs:
129151
run: |
130152
rm -rf /tmp/.buildx-cache
131153
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
154+
155+
- name: Summarize published image tags
156+
run: |
157+
{
158+
echo "## Docker publish"
159+
echo
160+
echo "- Release tag: ${RELEASE_TAG}"
161+
echo "- Docker tags pushed:"
162+
echo "${{ steps.tags.outputs.tags }}" | sed 's/^/ - /'
163+
} >> "$GITHUB_STEP_SUMMARY"

.github/workflows/release_artifacts.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,19 @@ jobs:
3232
with:
3333
bundler-cache: true
3434

35+
- name: Setup pnpm
36+
uses: pnpm/action-setup@v6
37+
with:
38+
cache: true
39+
cache_dependency_path: frontend/pnpm-lock.yaml
40+
package_json_file: frontend/package.json
41+
3542
- uses: actions/setup-node@v6
3643
with:
3744
node-version-file: ".tool-versions"
38-
cache: npm
39-
cache-dependency-path: frontend/package-lock.json
4045

4146
- name: Install frontend dependencies
42-
run: npm ci
47+
run: pnpm install --frozen-lockfile
4348
working-directory: frontend
4449

4550
- name: Refresh OpenAPI artifacts

0 commit comments

Comments
 (0)