Create a JavaScript Action
This repository serves as a template for JavaScript Actions. For TypeScript see austenstone/action-typescript.
Use nodemon for a hot-reload dev environment.
npm run dev
Build the project with ncc.The build artifacts will be stored in a single file dist/index.js
.
npm run build
Test the project with jest.
npm test
Linting is done with eslint.
npm run lint
Create a workflow (eg: .github/workflows/run.yml
)
name: "Add to Project"
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: austenstone/action-javascript@main
Various inputs are defined in action.yml
:
Name | Description | Default |
---|---|---|
github‑token | Token to use to authorize. | ${{ github.token }} |
To get more help on the Actions see documentation.