2023-07-19 02:51:10 +00:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-08 14:21:46 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2023-07-19 02:51:10 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-10 04:24:06 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-07-19 02:51:10 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.release.tag_name }}
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v2
|
2023-10-24 03:41:22 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-07-19 02:51:10 +00:00
|
|
|
with:
|
|
|
|
cache: pnpm
|
|
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: pnpm install && pnpm build
|
|
|
|
|
|
|
|
- uses: JasonEtco/build-and-tag-action@v2
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|