chore(deps): update typescript-eslint monorepo to ^8.61.0 (#340) #315
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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| draft_release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| outputs: | |
| tag_name: ${{ steps.release-drafter.outputs.tag_name }} | |
| steps: | |
| # Get next version | |
| - uses: release-drafter/release-drafter@693d20e7c1ce1a81d3a41962f85914253b518449 # v7.3.1 | |
| id: release-drafter | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| release: | |
| name: Release | |
| environment: prod | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| if: github.event_name == 'workflow_dispatch' | |
| needs: draft_release | |
| steps: | |
| - uses: release-drafter/release-drafter@693d20e7c1ce1a81d3a41962f85914253b518449 # v7.3.1 | |
| id: release-drafter | |
| with: | |
| publish: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create semver outputs | |
| uses: actions/github-script@v9 | |
| id: semver | |
| env: | |
| TAG_NAME: ${{ steps.release-drafter.outputs.tag_name }} | |
| with: | |
| script: | | |
| const VERSION = process.env.TAG_NAME | |
| const matched = VERSION.match(/(((v\d+)\.\d+).\d+)/) | |
| core.setOutput('major', matched[3]) | |
| core.setOutput('minor', matched[2]) | |
| core.setOutput('patch', matched[1]) | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: "${{ steps.release-drafter.outputs.tag_name }}" | |
| persist-credentials: false | |
| - name: Update major and minor git tags | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAG_NAME: ${{ steps.release-drafter.outputs.tag_name }} | |
| MAJOR: ${{ steps.semver.outputs.major }} | |
| MINOR: ${{ steps.semver.outputs.minor }} | |
| REPOSITORY: ${{ github.repository }} | |
| run: | | |
| git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${REPOSITORY}.git" | |
| git push -f origin "refs/tags/${TAG_NAME}:refs/tags/${MAJOR}" | |
| git push -f origin "refs/tags/${TAG_NAME}:refs/tags/${MINOR}" |