mirror of
https://github.com/jimeh/release-please-manifest-action.git
synced 2026-02-19 01:06:38 +00:00
ci(docs): add job to verify generated docs in readme are up to date
This commit is contained in:
@@ -1,13 +1,23 @@
|
|||||||
---
|
---
|
||||||
name: Release
|
name: Release
|
||||||
on:
|
on: push
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- run: make docs
|
||||||
|
- name: Verify no changes after docs build
|
||||||
|
run: |
|
||||||
|
git diff --exit-code
|
||||||
|
|
||||||
release-please:
|
release-please:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: jimeh/release-please-manifest-action@v1
|
- uses: jimeh/release-please-manifest-action@v1
|
||||||
id: release
|
id: release
|
||||||
7
Makefile
7
Makefile
@@ -1,3 +1,10 @@
|
|||||||
|
.PHONY: docs
|
||||||
|
docs: readme
|
||||||
|
|
||||||
|
.PHONY: readme
|
||||||
|
readme: check-npx action-docs
|
||||||
|
npx --yes prettier --print-width 80 --prose-wrap always --write README.md
|
||||||
|
|
||||||
.PHONY: action-docs
|
.PHONY: action-docs
|
||||||
action-docs: check-npx
|
action-docs: check-npx
|
||||||
npx --yes action-docs --update-readme
|
npx --yes action-docs --update-readme
|
||||||
|
|||||||
Reference in New Issue
Block a user