Skip to content

Commit b8a80eb

Browse files
committed
ci: upgrade release workflow
1 parent 977ffe8 commit b8a80eb

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,31 @@ on:
88
jobs:
99
check:
1010
runs-on: ubuntu-latest
11-
name: Check if release job should run
11+
name: Context check
1212
outputs:
1313
continue: ${{ steps.check.outputs.continue }}
14+
workflow: ${{ steps.check.outputs.workflow }}
1415
steps:
15-
- name: Check context
16+
- name: Context check
1617
id: check
1718
uses: trigensoftware/simple-release-action@latest
1819
with:
1920
workflow: check
21+
pull-request:
22+
runs-on: ubuntu-latest
23+
name: Pull request
24+
needs: check
25+
if: needs.check.outputs.workflow == 'pull-request'
26+
steps:
27+
- name: Create or update pull request
28+
uses: trigensoftware/simple-release-action@latest
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
2031
release:
2132
runs-on: ubuntu-latest
2233
name: Release
2334
needs: check
24-
if: needs.check.outputs.continue == 'true'
35+
if: needs.check.outputs.workflow == 'release'
2536
steps:
2637
- name: Checkout the repository
2738
uses: actions/checkout@v4
@@ -37,7 +48,7 @@ jobs:
3748
registry-url: 'https://registry.npmjs.org'
3849
- name: Install dependencies
3950
run: pnpm install
40-
- name: Simple release
51+
- name: Release
4152
uses: trigensoftware/simple-release-action@latest
4253
with:
4354
github-token: ${{ secrets.GITHUB_TOKEN }}

.simple-release.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

.simple-release.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"project": ["@simple-release/pnpm#PnpmWorkspacesProject", {
3+
"mode": "independent"
4+
}],
5+
"releaser": {
6+
"verbose": true
7+
},
8+
"publish": {
9+
"access": "public"
10+
}
11+
}

0 commit comments

Comments
 (0)