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: - Creating a personal access token

  1. tools:
  2. # name of the tool
  3. - name: githubactions-nodejs
  4. # id of the tool instance
  5. instanceID: default
  6. # format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
  7. dependsOn: []
  8. # options for the plugin
  9. options:
  10. # the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
  11. owner: YOUR_GITHUB_USERNAME
  12. # the repo's org. If you set this property, then the new repo will be created under the org you're given, and the "owner" setting above will be ignored.
  13. org: YOUR_ORGANIZATION_NAME
  14. # the repo where you'd like to setup GitHub Actions; please change the value below to an existing repo.
  15. repo: YOUR_REPO_NAME
  16. # programming language specific settings
  17. language:
  18. name: nodejs
  19. # version of the language
  20. version: "16.14"
  21. # main branch of the repo (to which branch the plugin will submit the workflows)
  22. branch: main

All parameters are mandatory.