This repository contains a collection of GitHub Workflows that can be reused across repos.
To use a workflow in your project, simply create an new job and add the full path of the workflow you want to use with the uses keyword:
jobs:
update_release_draft:
uses: getPopsure/github-workflows/.github/workflows/[email protected]Make sure to use the latest version of the github-workflows repo adding the @v suffix.
@main branch of the github-workflows repo, as this branch can potentially be unstable.
The following configuration will trigger the generate-release-draft worfklow everytime a pull request is open.
name: Generate release draft
on:
pull_request:
branches:
- main
jobs:
update_release_draft:
uses: getPopsure/github-workflows/.github/workflows/[email protected]Some workflows require additional information or secrets to run. You can use the with or secrets keywords inside a job to pass the required information.
jobs:
lint:
uses: getPopsure/github-workflows/.github/workflows/[email protected]
secrets:
NPM_TOKEN: ${{ secrets.NPM_PKG_GITHUB_TOKEN }}You can learn more on the GitHub website.
If you have duplicated workflows across different projects, feel free to open a PR to include them here. This project uses SemVer for versioning.
- Add a visual regression workflow
- Cache dependencies to speed up workflows