A set of GitHub Actions workflows and configuration I use across my projects.
-
.github/workflows/npm-publish.yml- Publish to NPM with provenance
- Triggered by pushed tags.
-
.github/workflows/gh-pages-deploy.yml- Deploy Nuxt sites to GitHub Pages.
- Triggered by all push events to
main.
-
.github/workflows/nuxt-module-ci.yml- CI for Nuxt modules with monorepo support.
- Triggered by all push/PR events to
main.
-
.github/dependabot-regular-updates.yml- Dependabot regular updates.
-
.github/archive/auto-patch.yml(Archived)- Bumps package version automatically from within a dependency update PR created by Dependabot.
-
.github/archive/push-tags.yml(Archived)- Pushes tags after merging Dependabot PRs.
- Triggers the
npm-publish.ymlworkflow if used.
name: Publish to NPM
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
permissions:
contents: read
id-token: write
uses: oneminch/workflows/.github/workflows/npm-publish.yml@v1
# with:
# package-filter: '@scope/pkg'
# node-version: '24'name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
permissions:
pages: write
id-token: write
uses: oneminch/workflows/.github/workflows/gh-pages-deploy.yml@v1
# with:
# node-version: '22'
# build-command: 'pnpm run build --preset github_pages'
# artifact-path: './.output/public'name: My Module CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
permissions:
contents: read
id-token: write
uses: oneminch/workflows/.github/workflows/nuxt-module-ci.yml@v1
# with:
# node-version: '24'
# prepare-script: 'pnpm run docs:prepare'name: Auto Patch Version
on:
pull_request:
types: [opened]
branches: [main]
workflow_dispatch:
jobs:
patch:
if: github.event.pull_request.user.login == 'dependabot[bot]'
uses: oneminch/workflows/.github/workflows/auto-patch.yml@v1
permissions:
contents: writename: Push Tags After Dependabot Merge
on:
pull_request:
types: [closed]
branches: [main]
workflow_dispatch:
jobs:
push-tags:
if: |
github.event.pull_request.merged == true &&
github.event.pull_request.user.login == 'dependabot[bot]'
uses: oneminch/workflows/.github/workflows/push-tags.yml@v1
permissions:
contents: writename: Patch & Tag
on:
pull_request:
types: [opened, closed]
branches: [main]
workflow_dispatch:
jobs:
patch:
if: |
github.event.action == 'opened' &&
github.event.pull_request.user.login == 'dependabot[bot]'
uses: oneminch/workflows/.github/workflows/auto-patch.yml@v1
permissions:
contents: write
push-tags:
if: |
github.event.action == 'closed' &&
github.event.pull_request.merged == true &&
github.event.pull_request.user.login == 'dependabot[bot]'
uses: oneminch/workflows/.github/workflows/push-tags.yml@v1
permissions:
contents: write