Based on my own release tool.
- The release workflow resolves release's notes from
CHANGELOG.md
. - The publish workflow supports syncing published pkgages to cnpm.
name: Release and Publish
on:
push:
tags:
- v*
jobs:
release:
permissions:
contents: write
uses: lvjiaxuan/github-action-templates/.github/workflows/lvr-release.yml@main
secrets: inherit
publish:
uses: lvjiaxuan/github-action-templates/.github/workflows/lvr-publish.yml@main
with:
sync_cnpm: true
secrets: inherit
- A hard code on inputs. Recommend using GitHub's noreply email.
- If no
inputs.email
is provided, auto-detectvars.ACTOR_EMAIL
by default. Reference to actions secrets and variables 👉 https://github.com/{actor}/{repo}/settings/secrets/actions .
Tip
name: Update Dependencies
permissions:
pull-requests: write
contents: write
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * SAT
jobs:
update-deps:
uses: lvjiaxuan/github-action-templates/.github/workflows/update-deps.yml@main
with:
email: xxx@xx.xx # Explicitly set `inputs.email`, if `vars.ACTOR_EMAIL` isn't set.
- update-repository-description by @zhengbangbo