-
Notifications
You must be signed in to change notification settings - Fork 5
feat: staging setup for extensions #296
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: main
Are you sure you want to change the base?
Conversation
| - name: Get manifest extension version | ||
| run: | | ||
| MANIFEST_VERSION=$(semver -c $(jq -c -r '.extension.version' < ./extensions/${{ inputs.extension-name }}/manifest.json)) | ||
| MANIFEST_VERSION=$(semver -c -p $(jq -c -r '.extension.version' < ./extensions/${{ inputs.extension-name }}/manifest.json)) |
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 -p flag makes it so we always include prerelease versions in range matching.
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: release-${{ inputs.extension-name }}.json | ||
| name: release-${{ inputs.extension-name }}${{ env.PRERELEASE == 'true' && '-prerelease' || '' }}.json |
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.
artifact gets a '-prerelease' suffix to make for easier management in extensions.yml
|
|
||
| # don't add prerelease files to extensions.json on main | ||
| # TODO: verify this does what we want | ||
| - name: Remove prerelease files |
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.
We need to make sure we don't fetch pre-release versions here.
| if: ${{ always() && needs.fetch-prerelease-releases.result == 'success' && needs.fetch-prerelease-releases.outputs.releases != '[]' }} | ||
| env: | ||
| RELEASES: ${{ needs.fetch-prerelease-releases.outputs.releases }} | ||
| EXTENSION_LIST_FILE: extensions-prerelease.json |
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.
writing to a separate file called extensions-prerelease.json
|
@dotNomad zero rush on this, but if you want to take an early look at this to make sure I'm not driving things in the complete wrong direction that would be helpful! Still a couple pieces to do, but most of the basic structure is there. |
DRAFT
note: claude wrote the initial version of tests for extension-list, but I went back in and did a ton of editing and removing.
TODO: