Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.24 KB

githubactions-nodejs.md

File metadata and controls

34 lines (28 loc) · 1.24 KB

githubactions-nodejs Plugin

This plugin creates Nodejs GitHub Actions workflows.

Usage

This plugin depends on an environment variable "GITHUB_TOKEN". Set it before using this plugin.

If you don't know how to create this token, check out:

tools:
- name: nodejs-demo-app
  # name of the plugin
  plugin: githubactions-nodejs
  # optional; if specified, dtm will make sure the dependency is applied first before handling this tool.
  dependsOn: [ "TOOL1_NAME.TOOL1_PLUGIN", "TOOL2_NAME.TOOL2_PLUGIN" ]
  # options for the plugin
  options:
    # the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
    owner: YOUR_GITHUB_USERNAME
    # the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
    repo: YOURE_REPO_NAME
    # programming language specific settings
    language:
      name: nodejs
      # version of the language
      version: "16.14"
    # main branch of the repo (to which branch the plugin will submit the workflows)
    branch: main

All parameters are mandatory.