- Issue created by @fionamorrison23
- 🇦🇺Australia alan.cole
I have raised a PR for internal review on a currently private repository. I believe all necessary scripts will be made available at some point when the release is done.
----------------------------
Notes from PR:
----------------------------This script includes a number of bash files for handling:
Cloning the civictheme-monorepo[1] to get the required files.
Removing old files and replacing with new files in the civictheme subtheme being upgraded.
And a node.js file for handling:
Updating all subtheme stories using anthropic.
The script can be used by navigating to ./storybook-v8 and running:
export ANTHROPIC_API_KEY=[API_KEY]
export SUBTHEME_DIR="/path/to/subtheme"
bash ./update-build-and-storybook.sh
node convert-subtheme-storybook.jsAn example file run-upgrade.sh exists that can be edited to include the path and API key and run using bash run-upgrade.sh.
Assumptions:
The custom site's base theme is already updated to civictheme 1.10 (the script will not do this).
Notes:
[1] Currently git does not use branch main due to main not currently having 1.10. When main has 1.10, the line # git checkout -b main origin/main should be uncommented from update-build-and-storybook.sh.
- 🇦🇺Australia RichardGaunt Melbourne
We have created a repository for this update script (details being outlined in the release notes of 1.10)
PR for this update script and screenshots
https://github.com/civictheme/upgrade-tools/pull/1Repository to get this script from: https://github.com/civictheme/upgrade-tools