-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.44 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
49
50
51
52
53
54
55
56
57
name: release
on:
push:
branches: [main]
workflow_dispatch:
inputs:
release:
description: 'Type "release" to create the release (`main` branch only)!'
required: false
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
dryrun:
if: ${{ github.ref != 'refs/heads/main' || github.event.inputs.release != 'release' }}
runs-on: ubuntu-latest
permissions:
contents: write
issues: read
pull-requests: read
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v2
- name: 📦 Install dependencies
run: bun install
- name: 📋 Dry-running release
run: bun semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
create:
if: ${{ github.ref == 'refs/heads/main' && github.event.inputs.release == 'release' }}
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v2
- name: 📦 Install dependencies
run: bun install
- name: 📋 Release extension
run: bun semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
GIT_AUTHOR_NAME: '[bot] Release Agent'
GIT_COMMITTER_NAME: '[bot] Release Agent'