Skip to content
oneminchPublic

About

A set of reusable GitHub Actions workflows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Workflows

A set of GitHub Actions workflows and configuration I use across my projects.

Usage

Publish to NPM (with PNPM)

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'

Deploy to GitHub Pages

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'

Nuxt Module CI

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'

Auto Bump Version

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: write

Push Tags

name: 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: write

Alternative (Patch & Tag)

name: 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

About

A set of reusable GitHub Actions workflows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors