Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@ jobs:
cache: npm
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Format
run: npm run format
- name: Test
run: npm test
- name: CI
run: npm run ci
7 changes: 6 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Release Please

on:
push:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
workflow_dispatch:
Expand All @@ -12,6 +16,7 @@ permissions:

jobs:
release-please:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Run Release Please
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This file documents the release workflow for this repository.
## Release automation (Release Please)

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

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"type": "commonjs",
"scripts": {
"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",
"ci": "npm run lint && npm run format && npm test",
"lint": "eslint .",
"format": "prettier --check .",
"format:write": "prettier --write .",
Expand Down