This repository contains action and workflow definitions which can be used across Human Made projects to centralize and standardize our tooling and release processes.
The build-to-release-branch.yml
action can be used to compile a source branch into a target releasable branch, committing any built assets which are normally gitignore'd. This release branch can then be tagged for a formalized NPM or Packagist release, or else tracked in composer as a VCS reference.
This workflow simplifies installing Node.js dependencies, then building them to a target branch. It composes the actions/checkout
, actions/setup-node
, and our custom build-to-release-branch
actions.
Example usage:
name: Production Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
release:
name: "Update release branch"
uses: humanmade/hm-github-actions/.github/workflows/build-and-release-node.yml@bbe801d037b61dd0fa0fcd7d208f6bf54d7ca1fd # v0.1.1
with:
node_version: 22
source_branch: main
release_branch: release
built_asset_paths: build
build_script: |
npm ci
npm run build
See .github/workflows/build-and-release-node-basic.yml for full usage instructions.