Skip to content

Commit

Permalink
Merge pull request #13 from jimeh/tweak-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed May 18, 2023
2 parents ffac38c + 5ce2d33 commit b2f2b18
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 27 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Release
on: push

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:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: jimeh/release-please-manifest-action@v1
id: release
- name: MAJOR and MAJOR.MINOR tags
if: ${{ steps.release.outputs.release_created }}
uses: jimeh/update-tags-action@v1
with:
tags: |
v${{ steps.release.outputs.major }}
v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
27 changes: 0 additions & 27 deletions .github/workflows/release.yml

This file was deleted.

7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
action-docs: check-npx
npx --yes action-docs --update-readme
Expand Down

0 comments on commit b2f2b18

Please sign in to comment.