-
Notifications
You must be signed in to change notification settings - Fork 88
feat: cherry-pick naga workflows #929
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,117 @@ | ||||||
| name: Release | ||||||
| on: | ||||||
| workflow_run: | ||||||
| workflows: | ||||||
| - E2E - Naga (matrix) | ||||||
| branches: | ||||||
| - naga | ||||||
| - canary-naga | ||||||
| types: | ||||||
| - completed | ||||||
|
|
||||||
| permissions: | ||||||
| # allow pushing commits, creating tags, and modifying repo files | ||||||
| # needed for the workflow to update package.json versions and CHANGELOG files | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
|
|
||||||
| concurrency: | ||||||
| group: release-${{ github.event.workflow_run.head_branch || github.event.workflow_run.head_sha }} | ||||||
| cancel-in-progress: false | ||||||
|
|
||||||
| jobs: | ||||||
| release: | ||||||
| runs-on: ubuntu-latest | ||||||
| if: >- | ||||||
| ${{ github.event.workflow_run.conclusion == 'success' && | ||||||
| github.event.workflow_run.event == 'push' && | ||||||
| (github.event.workflow_run.head_branch == 'naga' || | ||||||
| github.event.workflow_run.head_branch == 'canary-naga') }} | ||||||
| # Enable this when we want to implement docker image release | ||||||
| # outputs: | ||||||
| # published: ${{ steps.changesets.outputs.published }} | ||||||
| # auth_server_published: ${{ steps.auth_server_release.outputs.published }} | ||||||
| steps: | ||||||
| - name: Check NPM Token | ||||||
| run: | | ||||||
| if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then | ||||||
| echo "❌ NODE_AUTH_TOKEN secret is not set. Please add it to repository secrets." | ||||||
| exit 1 | ||||||
| else | ||||||
| echo "✅ NODE_AUTH_TOKEN secret is available." | ||||||
| fi | ||||||
|
|
||||||
| - name: Checkout | ||||||
| uses: actions/checkout@v4 | ||||||
| with: | ||||||
| fetch-depth: 0 | ||||||
| ref: ${{ github.event.workflow_run.head_sha }} | ||||||
|
|
||||||
| - name: Setup PNPM | ||||||
| uses: pnpm/action-setup@v4 | ||||||
| with: | ||||||
| version: 9.15.0 | ||||||
|
|
||||||
| - name: Install rust | ||||||
| uses: actions-rs/toolchain@v1 | ||||||
|
||||||
| uses: actions-rs/toolchain@v1 | |
| uses: dtolnay/rust-toolchain@v1 |
Copilot
AI
Oct 9, 2025
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.
Hard-coded wasm-pack version '0.12.1' may become outdated. Consider using 'latest' or a more recent version, or document why this specific version is required.
| version: '0.12.1' | |
| version: 'latest' |
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 workflow depends on a specific workflow name 'E2E - Naga (matrix)'. If this workflow doesn't exist or its name changes, this release workflow will never trigger. Consider verifying this workflow exists or adding a comment explaining the dependency.