Skip to content

[Release] release v0.0.5 #7

[Release] release v0.0.5

[Release] release v0.0.5 #7

Workflow file for this run

name: Release Workflow on PR Merge
on:
pull_request:
types: [closed]
jobs:
create-release:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.ref == 'dev'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Check for version update in package.json
id: check_version
uses: EndBug/version-check@v2
- name: Push Git Tag
run: |
TAG="v${{ steps.check_version.outputs.version }}"
git tag $TAG
git push origin $TAG
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_level: warn
version: ${{ steps.check_version.outputs.version }}
- name: Create/update release
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.check_version.outputs.version }}
name: v${{ steps.check_version.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}