File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11name : Release Please
22
33on :
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
1317jobs :
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ." ,
You can’t perform that action at this time.
0 commit comments