Add release workflow to publish packages in a clean environment instead of locally
Add test workflow to test the features of the packages in pull requests
Fix and update package.json info of root and the core package
Relevant todos
[x] Set NPM_TOKEN
[x] Set GITHUB_TOKEN
Extras
The turbo issue
@ahonn reported that after the pnpm run build:packages command, the lib folder only contains a few files instead of the full expected content. I identified that the issue was related to the malfunctioning of turbo run. The problem was resolved after I cleared the repository cache.
To prevent this from happening again, I have created the release workflow. Running it in the GitHub CI (a clean environment) should help prevent such issues. When a bump commit has been merged, we can trigger the release workflow manually.
Disable test by default
The test workflow should fail at this point because not all tests are ready to run in automation. Therefore, I believe the test workflow should be disabled by default until the tests are well organized/updated.
Changes
release
workflow to publish packages in a clean environment instead of locallytest
workflow to test the features of the packages in pull requestspackage.json
info of root and the core packageRelevant todos
NPM_TOKEN
GITHUB_TOKEN
Extras
The turbo issue
@ahonn reported that after the
pnpm run build:packages
command, thelib
folder only contains a few files instead of the full expected content. I identified that the issue was related to the malfunctioning ofturbo run
. The problem was resolved after I cleared the repository cache.To prevent this from happening again, I have created the
release
workflow. Running it in the GitHub CI (a clean environment) should help prevent such issues. When a bump commit has been merged, we can trigger therelease
workflow manually.Disable
test
by defaultThe
test
workflow should fail at this point because not all tests are ready to run in automation. Therefore, I believe thetest
workflow should be disabled by default until the tests are well organized/updated.