The project is based on the template actions/typescript-action: Create a TypeScript Action with tests, linting, workflow, publishing, and versioning
Install the dependencies
npm installBuild & test
npm run allThe action.yml contains defines the inputs and output for your action.
Update the action.yml with your name, description, inputs and outputs for your action.
See the documentation
Most toolkit and CI/CD operations involve async operations so the action is run in an async function.
import * as core from '@actions/core';
...
async function run() {
try {
...
}
catch (error) {
core.setFailed(error.message);
}
}
run()See the toolkit documentation for the various packages.
# update the version in package.json
# commit the change
git commit -a -m "📦"
script/releaseYour action is now published! 🚀
See the versioning documentation
You can now validate the action by referencing the releases/v1 branch
uses: actions/typescript-action@releases/v1
with:
milliseconds: 1000See the actions tab for runs of this action! 🚀
Edit tag on GitHub: https://github.com/davidB/rust-cargo-make/releases/new?tag=v1.5.0