-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.3 KB
/
release.yml
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
42
43
44
45
46
47
48
name: Manual Release
on:
workflow_dispatch: # This allows the workflow to be triggered manually
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Change to https
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Set Git identity
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Release draft
run: pnpm release-it --no-git.push --no-npm.publish --no-github.release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build the project
run: pnpm build
- name: Zip the dist directory
run: |
zip -r release.zip dist
- name: Run release-it
run: pnpm release-it --ci --no-git.commit --no-git.tag --no-increment --no-git.changelog --no-plugins --no-hooks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}