formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

FIO-6632: Automate @formio/js updates to formiojs.test-form.io #5666

Open ryanformio opened 4 days ago

ryanformio commented 4 days ago

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-6632

Description

  1. Noticed a few things weren't building quite right. The SemVer in the package.json was not being updated automatically during build process. Created a script that will run everytime yarn build is 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 the package.json version read 5.0.0-rc.59.
  2. Noticed some differences in the CDN files based on looking at the artifact being distributed on GH Pages.
  3. Added updates to the release.yml to include the yarn install, yarn build, yarn release, and yarn invalidate to 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

image

Checklist: