Release version 1.4.1 #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Publish new release' | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - closed | |
| jobs: | |
| release: | |
| name: Publish new release | |
| runs-on: ubuntu-latest | |
| # only merged pull requests that begin with 'release/' must trigger this job | |
| if: github.event.pull_request.merged == true && | |
| startsWith(github.event.pull_request.head.ref, 'release/') | |
| steps: | |
| - name: Extract version from branch name | |
| run: | | |
| BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | |
| VERSION=${BRANCH_NAME#release/} | |
| echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | |
| - uses: actions/checkout@v7 | |
| - name: Use Node.js 24.x | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.x | |
| cache: 'npm' | |
| - name: Install Node modules | |
| run: npm ci | |
| - name: Build scripts | |
| run: npm run build-userscript | |
| - name: Extract release notes | |
| id: extract-release-notes | |
| uses: ffurrer2/extract-release-notes@v3 | |
| with: | |
| changelog_file: CHANGELOG.md | |
| - name: Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| target_commitish: ${{ github.event.pull_request.merge_commit_sha }} | |
| tag_name: ${{ env.RELEASE_VERSION }} | |
| name: ${{ env.RELEASE_VERSION }} | |
| draft: false | |
| prerelease: false | |
| body: ${{ steps.extract-release-notes.outputs.release_notes }} | |
| files: | | |
| ./dist/qc-ext.user.js | |
| ./dist/qc-ext.meta.js | |
| - name: Merge main into dev branch | |
| uses: thomaseizinger/create-pull-request@1.4.0 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| head: main | |
| base: develop | |
| title: Merge main into develop branch | |
| body: | | |
| This PR merges the main branch back into develop. | |
| This happens to ensure that the updates that happend on the release branch, i.e. CHANGELOG and manifest updates are also present on the dev branch. |