action-javascript

Create a JavaScript Action

Stars
2

JavaScript Action Template

This repository serves as a template for JavaScript Actions. For TypeScript see austenstone/action-typescript.

Development

Use nodemon for a hot-reload dev environment.

npm run dev

Build

Build the project with ncc.The build artifacts will be stored in a single file dist/index.js.

npm run build

Test

Test the project with jest.

npm test

Lint

Linting is done with eslint.

npm run lint

Usage

Create a workflow (eg: .github/workflows/run.yml)

Default Workflow

name: "Add to Project"
on:
  workflow_dispatch:

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: austenstone/action-javascript@main

Input Settings

Various inputs are defined in action.yml:

Name Description Default
github‑token Token to use to authorize. ${{ github.token }}

Further help

To get more help on the Actions see documentation.