Bump @types/node from 20.11.30 to 20.12.2 #216
Workflow file for this run
This file contains 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 release | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
create-tag: | |
name: Create tag | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'new-release') | |
outputs: | |
tag-name: ${{ steps.get-tag-name.outputs.tag-name }} | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Get tag name | |
id: get-tag-name | |
run: | | |
branch_name="${{ github.event.pull_request.head.ref }}" | |
tag_name=$(echo $branch_name | sed 's/version\///') | |
echo "tag-name=$tag_name" >> $GITHUB_OUTPUT | |
- name: Create tag | |
run: | | |
git tag "${{ env.TAG_NAME }}" | |
env: | |
TAG_NAME: ${{ steps.get-tag-name.outputs.tag-name }} | |
- name: Push tag to origin | |
run: git push origin "${{ env.TAG_NAME }}" | |
env: | |
TAG_NAME: ${{ steps.get-tag-name.outputs.tag-name }} |