npm-testdata: bump prettier from 3.0.3 to 3.1.1 in /testdata #116
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: Release | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
types: | |
- labeled | |
jobs: | |
release: | |
if: github.event.action != 'labeled' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Bump version on merging Pull Requests with specific labels. | |
# (bump:major,bump:minor,bump:patch) | |
- id: bumpr | |
if: "!startsWith(github.ref, 'refs/tags/')" | |
uses: haya14busa/action-bumpr@v1 | |
# Update corresponding major and minor tag. | |
# e.g. Update v1 and v1.2 when releasing v1.2.3 | |
- uses: haya14busa/action-update-semver@v1 | |
if: "!steps.bumpr.outputs.skip" | |
with: | |
tag: ${{ steps.bumpr.outputs.next_version }} | |
# Get tag name. | |
- id: tag | |
uses: haya14busa/action-cond@v1 | |
with: | |
cond: "${{ startsWith(github.ref, 'refs/tags/') }}" | |
if_true: ${{ github.ref }} | |
if_false: ${{ steps.bumpr.outputs.next_version }} | |
- id: stripped-tag | |
run: echo "::set-output name=value::$(echo "${TAG}" | sed 's/refs\/tags\///')" | |
env: | |
TAG: ${{ steps.tag.outputs.value }} | |
# Create release. | |
- uses: shogo82148/actions-create-release@v1 | |
if: "steps.tag.outputs.value != ''" | |
with: | |
# This token is provided by Actions, you do not need to create your own token | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
tag_name: ${{ steps.stripped-tag.outputs.value }} | |
release_name: ${{ steps.stripped-tag.outputs.value }} | |
body: ${{ steps.bumpr.outputs.message }} | |
draft: false | |
prerelease: false | |
release-check: | |
if: github.event.action == 'labeled' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Post bumpr status comment | |
uses: haya14busa/action-bumpr@v1 |