This buildpack builds on top of the existing Node.js Engine Cloud Native Buildpack. It runs subsequent scripts after Node is install.
- Run automatically
yarn install
- Run when configured in
package.jsonyarn buildoryarn heroku-postbuild
This buildpack is meant to be used with heroku/nodejs-engine version 0.7.3.
$ pack build --buildpack heroku/[email protected] --buildpack fagiani/nodejs-yarn myapp
You can optionally create a yarn.lock file in the root directory with a line like this:
# yarn_path:public/my-custom-path
Make sure you place the actual package.json and yarn.lock in that path
- Open a pull request.
- Make update to
CHANGELOG.mdundermasterwith a description (PR title is fine) of the change, the PR number and link to PR. - Let the tests run on CI. When tests pass and PR is approved, the branch is ready to be merged.
- Merge branch to
master.
Note: if you're not a contributor to this project, a contributor will have to make the release for you.
- Create a new branch (ie.
1.14.2-release). - Update the version in the
buildpack.toml. - Move the changes from
masterto a new header with the version and date (ie.1.14.2 (2020-02-30)). - Open a pull request.
- Let the tests run on CI. When tests pass and PR is approved, the branch is ready to be merged.
- Merge branch to
master. - Pull down
masterto local machine. - Tag the current
masterwith the version. (git tag v1.14.2) - Push up to GitHub. (
git push origin master --tags) CI will run the suite and create a new release on successful run.
- buildpacks: provide framework and a runtime for source code. Read more here.
- OCI image: OCI (Open Container Initiative) is a project to create open sourced standards for OS-level virtualization, most importantly in Linux containers.