-
Notifications
You must be signed in to change notification settings - Fork 94
feat: adds dev/release tag pipelines #911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 0.49
Are you sure you want to change the base?
Conversation
- Sets up dev/release tag pipelines - Adds script to populate common constants - Updates workflows to run on PRs and dev-tags
size-limit report 📦
|
- Ensures chromatic statuses are checked in the release checks
exit 1 | ||
fi | ||
|
||
if [[ "${{ steps.versions.outputs.packageVersion }}" != ${{ inputs.branch }}* ]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The branch comparison has a quoting issue that could lead to shell interpretation problems. The right side of the comparison should be quoted:
if [[ "${{ steps.versions.outputs.packageVersion }}" != "${{ inputs.branch }}"* ]]
This ensures that any special characters in the branch name are treated as literals rather than being interpreted by the shell.
if [[ "${{ steps.versions.outputs.packageVersion }}" != ${{ inputs.branch }}* ]] | |
if [[ "${{ steps.versions.outputs.packageVersion }}" != "${{ inputs.branch }}"* ]] |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
- name: Populate variables | ||
id: versions | ||
run: | | ||
. ./hooks/populate-hook-constants.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a step to ensure the script is executable before sourcing it:
chmod +x ./hooks/populate-hook-constants.sh
. ./hooks/populate-hook-constants.sh
This prevents potential permission issues after checkout, as Git doesn't always preserve executable permissions across systems.
. ./hooks/populate-hook-constants.sh | |
chmod +x ./hooks/populate-hook-constants.sh | |
. ./hooks/populate-hook-constants.sh |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
import httpx | ||
import sys | ||
|
||
check_runs_url = "https://api.github.com/repos/${{ github.repository }}/commits/tags/${{ needs.setup.outputs.devTag }}/check-runs?per_page=100&page={page}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URL format for GitHub's API check runs endpoint appears incorrect. The path segment tags/
in commits/tags/${{ needs.setup.outputs.devTag }}
is not standard GitHub API syntax. Consider using one of these formats instead:
https://api.github.com/repos/${{ github.repository }}/commits/${{ needs.setup.outputs.devTag }}/check-runs
or
https://api.github.com/repos/${{ github.repository }}/commits/refs/tags/${{ needs.setup.outputs.devTag }}/check-runs
GitHub's API documentation can provide further guidance on the correct format.
check_runs_url = "https://api.github.com/repos/${{ github.repository }}/commits/tags/${{ needs.setup.outputs.devTag }}/check-runs?per_page=100&page={page}" | |
check_runs_url = "https://api.github.com/repos/${{ github.repository }}/commits/refs/tags/${{ needs.setup.outputs.devTag }}/check-runs?per_page=100&page={page}" |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
Summary of change
(A few sentences about this PR)
Related issues
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
frontendDriverInterfaceSupported.json
file has been updated (if needed)package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.someFunc: function () {..}
).size-limit
section ofpackage.json
with the size limit set to the current size rounded up.rollup.config.mjs
lib/ts/types.ts
lib/ts/recipe/multifactorauth/types.ts
Remaining TODOs for this PR