Sign inSign up

thonatos/github-actions-nodejs

By thonatos

•Updated about 7 years ago

github-actions-nodejs

Image
0

2.2K

thonatos/github-actions-nodejs repository overview

⁠Node.js For Github Actions

Docker Cloud Build Status Docker Pulls

⁠Dependencies

  • Git
  • Node.js LTS

⁠Usage

⁠github actions
workflow "Push" {
  on = "push"
  resolves = ["CI"]
}

action "Installation" {
  needs = "Filters for GitHub Actions"
  uses = "thonatos/[email protected]"
  args = "npm install npminstall -g && npminstall"
}

action "CI" {
  needs = "Installation"
  uses = "thonatos/[email protected]"
  args = "npm run ci"
}

# Filter for master branch
action "Filters for GitHub Actions" {
  uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
  secrets = ["GITHUB_TOKEN"]
  args = "branch master"
}
⁠custom actions (with docker image)
workflow "Push" {
  on = "push"
  resolves = ["CI"]
}

action "Installation" {
  needs = "Filters for GitHub Actions"
  uses = "docker://thonatos/github-actions-nodejs:latest"
  args = "npm install npminstall -g && npminstall"
}

action "CI" {
  needs = "Installation"
  uses = "docker://thonatos/github-actions-nodejs:latest"
  args = "npm run ci"
}

# Filter for master branch
action "Filters for GitHub Actions" {
  uses = "actions/bin/filter@3c0b4f0e63ea54ea5df2914b4fabf383368cd0da"
  secrets = ["GITHUB_TOKEN"]
  args = "branch master"
}

⁠Contributing

⁠License

The project is MIT licensed⁠.

Tag summary

Content type

Image

Digest

Size

88.8 MB

Last updated

about 7 years ago

docker pull thonatos/github-actions-nodejs