Skip to content

Commit f6aea8b

Browse files
authored
Introduce new release workflow (#370)
1 parent 5f6cc89 commit f6aea8b

File tree

4 files changed

+866
-4140
lines changed

4 files changed

+866
-4140
lines changed

.github/workflows/release-pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release PR
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
new-version:
7+
description: New version to release
8+
required: true
9+
type: choice
10+
options: [patch, minor, major]
11+
12+
jobs:
13+
release-pr:
14+
uses: stylelint/.github/.github/workflows/call-release-pr.yml@34f1c0ac91f245ee4ee5ce725bb844328c17ccf5 # 0.3.0
15+
with:
16+
new-version: ${{ github.event.inputs.new-version }}
17+
permissions:
18+
contents: write
19+
pull-requests: write

.github/workflows/release.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
name: Release
22

33
on:
4-
push:
5-
tags: ['**']
6-
7-
concurrency:
8-
group: ${{ github.workflow }}
9-
cancel-in-progress: true
4+
pull_request:
5+
branches: [main]
6+
types: [closed]
107

118
jobs:
129
release:
13-
runs-on: ubuntu-latest
10+
uses: stylelint/.github/.github/workflows/call-release.yml@34f1c0ac91f245ee4ee5ce725bb844328c17ccf5 # 0.3.0
1411
permissions:
1512
contents: write
16-
timeout-minutes: 10
17-
steps:
18-
- name: Checkout
19-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20-
- name: Create release
21-
uses: stylelint/changelog-to-github-release-action@4c981d6bca2ec40fd7c25b43e4e5ad75ba07fc5a # 0.3.1
13+
id-token: write

0 commit comments

Comments
 (0)