Skip to content

Bump softprops/action-gh-release from 2.0.5 to 2.0.6 in the actions g… #115

Bump softprops/action-gh-release from 2.0.5 to 2.0.6 in the actions g…

Bump softprops/action-gh-release from 2.0.5 to 2.0.6 in the actions g… #115

Workflow file for this run

name: Release if version changed
on:
push:
branches: main
permissions:
contents: write
# To release a new version, update the version in package.json.
# This will create a draft release with the changelog and push a 'vx' tag that points to the new release as well as 'vx.y.z'.
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Quantco/ui-actions/version-metadata@v1
id: version-metadata
with:
file: ./package.json
token: ${{ secrets.GITHUB_TOKEN }}
- run: .github/scripts/release.sh
if: steps.version-metadata.outputs.changed == 'true'
env:
TAG_NAME: v${{ steps.version-metadata.outputs.newVersion }}
- name: Create release
if: steps.version-metadata.outputs.changed == 'true'
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
with:
generate_release_notes: true
tag_name: v${{ steps.version-metadata.outputs.newVersion }}
draft: true