Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate GitHub Release #5641

Open
wants to merge 2 commits into
base: automate-build-release
Choose a base branch
from

Conversation

domoscargin
Copy link
Contributor

@domoscargin domoscargin commented Jan 22, 2025

What

resolves #5608

Automates our GitHub releases through a workflow_dispatch GitHub Actions workflow.

The workflow creates a GitHub tag for the version in the package.json file. It also creates a zip file, and generates release notes from the CHANGELOG, before creating a release.

If the tag or the release already exist, the job will fail, and these will need to be manually deleted via the UI.

Notes

It's possible to skip the tag creation step, since gh release automatically creates a tag for the release if it doesn't exist. This PR keeps this step so that the tags/release are fully consistent with every previous release tag on the repo.

Copy link

github-actions bot commented Jan 22, 2025

📋 Stats

File sizes

File Size
dist/govuk-frontend-development.min.css 118.52 KiB
dist/govuk-frontend-development.min.js 42.7 KiB
packages/govuk-frontend/dist/govuk/all.bundle.js 92.81 KiB
packages/govuk-frontend/dist/govuk/all.bundle.mjs 87.12 KiB
packages/govuk-frontend/dist/govuk/all.mjs 1.25 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend-component.mjs 1.74 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend.min.css 118.51 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend.min.js 42.69 KiB
packages/govuk-frontend/dist/govuk/i18n.mjs 5.55 KiB
packages/govuk-frontend/dist/govuk/init.mjs 7.13 KiB

Modules

File Size (bundled) Size (minified)
all.mjs 82.57 KiB 40.4 KiB
accordion.mjs 26.58 KiB 13.41 KiB
button.mjs 9.09 KiB 3.78 KiB
character-count.mjs 25.39 KiB 10.9 KiB
checkboxes.mjs 7.81 KiB 3.42 KiB
error-summary.mjs 10.99 KiB 4.54 KiB
exit-this-page.mjs 20.2 KiB 10.34 KiB
header.mjs 6.46 KiB 3.22 KiB
notification-banner.mjs 9.35 KiB 3.7 KiB
password-input.mjs 18.24 KiB 8.33 KiB
radios.mjs 6.81 KiB 2.98 KiB
service-navigation.mjs 6.44 KiB 3.26 KiB
skip-link.mjs 6.4 KiB 2.76 KiB
tabs.mjs 12.04 KiB 6.67 KiB

View stats and visualisations on the review app


Action run for f07c25f

@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from e6a1b6a to ee682da Compare January 22, 2025 15:50
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from ee682da to ddd4e44 Compare January 22, 2025 15:55
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from ddd4e44 to 00ca872 Compare January 22, 2025 16:01
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from 00ca872 to 1b24a1c Compare January 22, 2025 16:04
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from 1b24a1c to 4374074 Compare January 22, 2025 16:07
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from 4374074 to dcd78a7 Compare January 22, 2025 16:52
@domoscargin domoscargin changed the title Create initial publish workflow Automate GitHub Release Jan 22, 2025
@domoscargin domoscargin changed the title Automate GitHub Release WIP: Automate GitHub Release Jan 22, 2025
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from 1c66edd to db8212d Compare January 22, 2025 21:36
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from d68b862 to 076bb32 Compare January 22, 2025 21:49
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from 8bbd97d to c29878a Compare January 22, 2025 22:12
@domoscargin domoscargin changed the title WIP: Automate GitHub Release Automate GitHub Release Jan 22, 2025
@domoscargin domoscargin changed the base branch from main to automate-build-release January 22, 2025 22:13
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from c29878a to 548a384 Compare January 22, 2025 22:22
Co-authored-by: Brett Kyle <brett.kyle@digital.cabinet-office.gov.uk>
Co-authored-by: Owen Jones <owen.jones@digital.cabinet-office.gov.uk>
@domoscargin domoscargin force-pushed the automate-publish-release-to-github branch from 548a384 to b84b2e4 Compare January 22, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants