Use this template to bootstrap the creation of a JavaScript action. 🚀
This template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.
-
🛠️ Install the dependencies
npm install
-
🏗️ Package the JavaScript for distribution
npm run build
-
✅ Run the tests
$ npm test PASS ./index.test.js ✓ throws invalid number (3ms) ✓ wait 500 ms (504ms) ✓ test runs (95ms) ...
This action will automatically create test action.
| Name | Description | Obligatory | Default |
|---|---|---|---|
test |
Run mode | optional | false |
| Name | Description |
|---|---|
response |
The one of the results |
name: Release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run my Action
id: run-action
uses: oobook/automated@v1 # Commit with the `v1` tag
with:
test: false