Skip to content

glzr-io/actions

Repository files navigation

Actions · PRs Welcome License Discord invite

Semantic PRs

GitHub Actions workflow for validating PR titles.

Example usage

name: PR title check

on:
  pull_request:
    types: [opened, edited, synchronize, reopened]

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: glzr-io/actions/semantic-prs@main
        with:
          gh-token: ${{ secrets.GITHUB_TOKEN }}

Semantic Release

GitHub Actions workflow for publishing to GitHub releases and/or NPM via Semantic Release.

Note that the repository requires at least one branch other than the release branch.

Example usage

name: Release

on: workflow_dispatch

permissions:
  # To be able to publish a GitHub release.
  contents: write
  # To be able to comment on released issues.
  issues: write
  # To be able to comment on released pull requests.
  pull-requests: write
  # To enable use of OIDC for npm provenance.
  id-token: write

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Semantic release
        uses: glzr-io/actions/semantic-release@main
        with:
          is-prerelease: false
          repository-url: github.com:glzr-io/glazewm-js.git
          gh-publish: true
          gh-token: ${{ secrets.GITHUB-TOKEN }}
          npm-publish: true
          npm-token: ${{ secrets.NPM_TOKEN }}

About

Shared workflows for GitHub Actions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published