.github/workflows/release.yml #60
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
on: | |
workflow_run: | |
workflows: ['Tests'] | |
types: | |
- completed | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/[email protected] | |
with: | |
node-version: 22 | |
- run: | | |
pnpm i --frozen-lockfile | |
pnpm build | |
- uses: JS-DevTools/[email protected] | |
id: publish | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
- name: Create Tag | |
if: ${{ steps.publish.outputs.type }} | |
id: create_tag | |
uses: jaywcjlove/create-tag-action@main | |
with: | |
package-path: ./package.json | |
- name: Generate Changelog | |
id: changelog | |
uses: jaywcjlove/changelog-generator@main | |
if: steps.create_tag.outputs.successful | |
with: | |
head-ref: ${{steps.create_tag.outputs.version}} | |
filter-author: (Uninen|renovate-bot|Renovate Bot|renovate\\[bot\\]|Mend Renovate) | |
show-emoji: false | |
- name: Get the changelog | |
run: echo "${{ steps.changelog.outputs.changelog }}" | |
- name: Create Release | |
uses: ncipollo/[email protected] | |
if: steps.create_tag.outputs.successful | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: ${{ steps.create_tag.outputs.version }} | |
tag: ${{ steps.create_tag.outputs.version }} | |
body: | | |
${{ steps.changelog.outputs.changelog }} | |
Compare changes: ${{ steps.changelog.outputs.compareurl }} | |
Read more from the Changelog: https://github.com/slipmatio/ui/blob/main/CHANGES.md |