Skip to content

Default iamlive version to v1.1.11 #12

Default iamlive version to v1.1.11

Default iamlive version to v1.1.11 #12

Workflow file for this run

name: Release
on:
push:
tags:
- v*
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: Release
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '20'
- name: Setup pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Check dist updated
run: |
pnpm build
git diff --quiet -- dist || {
echo "::error::The ./dist is outdated, run 'pnpm build' and commit"
exit 1
}
- uses: ncipollo/[email protected]
id: release
with:
draft: ${{ contains(github.ref, '-draft') }}
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
generateReleaseNotes: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Workflow notices
run: echo "::notice title=Release::${{ steps.release.outputs.html_url }}"