This action sets up the zwoo build tool, zwooc
, on GitHub's hosted Actions runners.
This action can be run on ubuntu-latest
, windows-latest
, and macos-latest
GitHub Actions runners, and will install and expose a specified version of the zwooc
CLI on the runner environment.
Setup zwooc
:
steps:
- uses: zwoo-hq/setup-zwooc@v1
A specific version of zwooc
can be installed:
steps:
- uses: zwoo-hq/setup-zwooc@v1
with:
version: <version>
The actions supports the following inputs:
Name | Type | Description | Default | Required |
---|---|---|---|---|
version |
String | zwooc version (or latest ) |
latest |
false |
Requires
node >= 20
Install the dependencies
$ npm install
Build the TypeScript and package it for distribution
$ npm run build && npm run package
Run the tests ✔️
$ npm test
PASS __tests__/main.test.ts
✓ gets download url to binary (3 ms)
✓ test runs (891 ms)
...
Actions are run from GitHub repository so we will checkin the packed dist folder.
- Create a new GitHub release
- Rebase
v1
branch onmain
Your action is now published! 🚀
See the versioning documentation
You can now validate the action by referencing ./
in a workflow in your repository (see test.yml)
uses: ./
with:
version: latest
See the actions tab for runs of this action! 🚀