formio.js
formio.js copied to clipboard
FIO-6632: Automate @formio/js updates to formiojs.test-form.io
Link to Jira Ticket
https://formio.atlassian.net/browse/FIO-6632
Description
- Noticed a few things weren't building quite right. The SemVer in the
package.jsonwas not being updated automatically during build process. Created a script that will run everytimeyarn buildis called to get the tag from git and update pacakge.json. Should ensure correct time every build. https://github.com/formio/formio.js/actions/runs/9700333835 <- Happened to see that the version was v5.0.0-rc60 but did not see the version on the CDN. Saw v5.0.0-rc.59 and this was because thepackage.jsonversion read 5.0.0-rc.59. - Noticed some differences in the CDN files based on looking at the artifact being distributed on GH Pages.
- Added updates to the
release.ymlto include theyarn install,yarn build,yarn release, andyarn invalidateto updates trigger properly in pipeline.
Why have you chosen this solution?
Was asked to provide some testing steps for previous issue FIO-6632 per Dane and noticed some issues in the process.
Dependencies
n/a
How has this PR been tested?
Pushed the updates to test CDN to test commands manually. https://formiojs.test-form.io/5.0.0-rc.60/
Link to steps documented in Confluence -> https://formio.atlassian.net/wiki/x/AQCkCQ
Checklist:
- [ ] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation (if applicable)
- [x] My changes generate no new warnings
- [ ] My changes include tests that prove my fix is effective (or that my feature works as intended)
- [x] New and existing unit/integration tests pass locally with my changes
- [ ] Any dependent changes have corresponding PRs that are listed above
I don't think we should be automatically updating the symver automatically. I am fine with DEV tags, but there may be some bad side effects of this releasing the RC versions automatically. It may also cause issues with our build script. Is this really necessary?