This is a description of the rough steps required to release a new version.
- In
package.json
, changeversion
to the new version. - In
nuxt.config.ts
, changeruntimeConfig.public.softwareVersion
to the new version. - Run
npm install
to also update the version inpackage-lock.json
to prevent spurious diffs in future commits.
Yes, this is probably needlessly convoluted. Don't tell anyone how I live.
- Generate a changelog with
npx changelogen@latest
and copy it intoCHANGELOG.md
. - Stage
CHANGELOG.md
,package.json
,package-lock.json
, andnuxt.config.ts
and commit with descriptionchore(release): v<version>
. - Generate the release tag with
git tag v<version>
. - Push the commit to main with
git push
. - Push the tag with
git push origin v<version>
.
- Open the GitHub releases page and create a new release at the new tag.
- Copy the changelog into the description and publish! Attaching the built version is not needed due to environment variables in
nuxt.config.ts
being evaluated at build time. - Deploy the new version to any remote servers, if applicable.