-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.44 KB
/
create-release.yaml
File metadata and controls
44 lines (43 loc) · 1.44 KB
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
name: Create Release
on:
workflow_dispatch:
push:
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Setup Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Dry Run Release
uses: cycjimmy/semantic-release-action@v6
if: github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
dry_run: true
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
'main',
{name: '*', prerelease: true}
]
extra_plugins: |
@semantic-release/exec
- name: Create Release
uses: cycjimmy/semantic-release-action@v6
if: github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
branch: main
extra_plugins: |
@semantic-release/exec