Skip to content
iwsllcPublic

About

Shared public workflows for GHA runners

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IWS Workflows

Publish

Version

Test

Gate

Composite action (gate/action.yml) that turns a PR workflow's job results into the one required status check. Use it as a step, not a reusable workflow: a job that calls a reusable workflow reports as gate / <inner job>, while a step keeps the caller's job name, gate, which is what each repo's ruleset requires.

gate:
  needs: [changes, test]
  if: ${{ always() }}
  runs-on: ubuntu-latest
  steps:
    - uses: iwsllc/workflows/gate@v9
      with:
        draft: ${{ github.event.pull_request.draft }}
        needs: ${{ toJSON(needs) }}
        require-success: changes

Fails on drafts (trigger on ready_for_review and converted_to_draft too), on any needs job that failed or was cancelled, and on any require-success job that didn't succeed. Skipped jobs otherwise pass.

Setup pnpm

Composite action (setup-pnpm/action.yml) used by the reusable workflows above to install pnpm. It wraps pnpm/action-setup@v6 (standalone) and caches ~/setup-pnpm under pnpm-<os>-<arch>-<version>, so a run on a known version skips the registry download.

steps:
  - uses: actions/checkout@v6
  - uses: iwsllc/workflows/setup-pnpm@v9
    with:
      version: '' # optional; defaults to devEngines.packageManager / packageManager

A restored cache is used only if its pnpm --version matches the expected version; otherwise pnpm installs fresh. Only exact versions are cached; ranges and dist-tags always install.

About

Shared public workflows for GHA runners

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors