- lvr-release
- lvr-publish(to npm)
- update-deps
Based on my own release tool.
features:
- The release workflow extracts release's notes from
CHANGELOG.mdwhich is created by my tool. - 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
inputs.emailisn't provided, thevars.ACTOR_EMAILwill be read. Refer to actions secrets and variables settings ๐ https://github.com/{actor}/{repo}/settings/secrets/actions .
Tip
๐ cron syntax help
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: [email protected] # Explicitly set `inputs.email`, if `vars.ACTOR_EMAIL` isn't set on repo.- update-repository-description by @zhengbangbo