-
Notifications
You must be signed in to change notification settings - Fork 6
feat: update workflows for release 3 support and version bumping #417
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: release/3
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: Publish GitHub package and trigger main branch update | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - release/3 | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| packages: write | ||
| steps: | ||
| - uses: actions/create-github-app-token@v2 | ||
| id: app-token | ||
| with: | ||
| app-id: ${{ secrets.APP_ID }} | ||
| private-key: ${{ secrets.PRIVATE_KEY }} | ||
|
|
||
| - name: Get GitHub App User ID | ||
| id: get-user-id | ||
| run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | ||
| env: | ||
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| token: ${{ steps.app-token.outputs.token }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Build Artifacts | ||
| uses: ./.github/actions/build-artifacts | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| registry-url: https://npm.pkg.github.com | ||
|
|
||
| - name: Bump version | ||
| shell: bash | ||
| run: pnpm version prerelease --no-git-tag-version | ||
|
|
||
| - name: Commit and push changes | ||
| uses: stefanzweifel/git-auto-commit-action@v5 | ||
| with: | ||
| commit_message: 'chore: Bump version [skip actions]' | ||
| file_pattern: 'package.json' | ||
| commit_user_name: '${{ steps.app-token.outputs.app-slug }}[bot]' | ||
| commit_user_email: '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com' | ||
|
|
||
| - name: Publish Docs | ||
| run: npm publish --access restricted | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Trigger main branch update | ||
| shell: bash | ||
| run: gh workflow run update.yml --ref main | ||
| env: | ||
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ name: Update GitHub page | |
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release/v3 | ||
|
Comment on lines
3
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The update workflow now listens for pushes on Useful? React with 👍 / 👎. |
||
| workflow_dispatch: | ||
|
|
||
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
|
|
@@ -15,7 +15,7 @@ permissions: | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
| concurrency: | ||
| group: "pages" | ||
| group: 'pages' | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
|
|
||
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 new publish workflow calls the composite action
./.github/actions/build-artifactswithout providing its requiredPERSONAL_ACCESS_TOKENinput. That action’s definition marks the token as required, so this job will fail immediately with “Input required and not supplied: PERSONAL_ACCESS_TOKEN” before any build or publish steps run, blocking the release/3 publish pipeline.Useful? React with 👍 / 👎.