-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 994 Bytes
/
Copy pathrelease.yml
File metadata and controls
41 lines (34 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "Version type (patch, minor, major, or specific version)"
required: true
default: "patch"
permissions:
contents: write
packages: write
id-token: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Install pnpm and Node.js
uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2
with:
runtime: node@24
cache: true
- name: Configure git
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: Release
run: pnpm release "${{ github.event.inputs.version }}" --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}