mirror of
https://github.com/prefix-dev/setup-pixi
synced 2026-10-08 15:04:08 +03:00
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: Quantco/ui-actions/version-metadata@cd71d2a0e30b25569f6d723e57acca83347e58fc # v1.0.18
|
|
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@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
|
|
with:
|
|
generate_release_notes: true
|
|
tag_name: v${{ steps.version-metadata.outputs.newVersion }}
|
|
draft: true
|