Skip to content

Commit db36272

Browse files
committed
ci: run release-please after CI on main
1 parent 8a68b96 commit db36272

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,5 @@ jobs:
2323
cache: npm
2424
- name: Install
2525
run: npm ci
26-
- name: Lint
27-
run: npm run lint
28-
- name: Format
29-
run: npm run format
30-
- name: Test
31-
run: npm test
26+
- name: CI
27+
run: npm run ci

.github/workflows/release-please.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Release Please
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows:
6+
- CI
7+
types:
8+
- completed
59
branches:
610
- main
711
workflow_dispatch:
@@ -12,6 +16,7 @@ permissions:
1216

1317
jobs:
1418
release-please:
19+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1520
runs-on: ubuntu-latest
1621
steps:
1722
- name: Run Release Please

MAINTAINERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This file documents the release workflow for this repository.
55
## Release automation (Release Please)
66

77
- Workflow: `.github/workflows/release-please.yml`
8-
- Trigger: pushes to `main` (or manual run via `workflow_dispatch`)
8+
- Trigger: successful `CI` workflow run on `main` (or manual run via `workflow_dispatch`)
99
- Behavior: opens or updates a release PR and manages `CHANGELOG.md`
1010
- Merge: merging the release PR creates the Git tag and GitHub Release
1111

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"type": "commonjs",
88
"scripts": {
99
"bundle": "rimraf dist && ncc build src/pre.js -o dist/pre && ncc build src/post.js -o dist/post && ncc build src/noop.js -o dist/noop",
10+
"ci": "npm run lint && npm run format && npm test",
1011
"lint": "eslint .",
1112
"format": "prettier --check .",
1213
"format:write": "prettier --write .",

0 commit comments

Comments
 (0)