Skip to content

chore(release): 1.0.3 #5

chore(release): 1.0.3

chore(release): 1.0.3 #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Build package
run: |
pnpm install
pnpm run build:zip
- name: Create changelog text
id: changelog_text
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/scripts/tag-changelog-config.cjs
- name: Get git tags
id: git_tags
run: |
current=$(git describe --abbrev=0 --tags)
echo "current=${current}" >> $GITHUB_OUTPUT
- name: Create release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ steps.git_tags.outputs.current }}
prerelease: false
draft: false
artifacts: "release/*.zip"
body: ${{ steps.changelog_text.outputs.changes }}