https://github.com/thonatos/github-actions-nodejs
Node.js For Github Actions
https://github.com/thonatos/github-actions-nodejs
actions
Last synced: 9 months ago
JSON representation
Node.js For Github Actions
- Host: GitHub
- URL: https://github.com/thonatos/github-actions-nodejs
- Owner: thonatos
- License: mit
- Created: 2019-07-16T08:55:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-16T23:15:50.000Z (over 5 years ago)
- Last Synced: 2025-04-09T01:28:34.870Z (about 1 year ago)
- Topics: actions
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js For Github Actions
 
## Dependencies
- Git
- Node.js LTS
## Usage
### github actions
```bash
workflow "Push" {
on = "push"
resolves = ["CI"]
}
action "Installation" {
needs = "Filters for GitHub Actions"
uses = "thonatos/github-actions-nodejs@v0.1.1"
args = "npm install npminstall -g && npminstall"
}
action "CI" {
needs = "Installation"
uses = "thonatos/github-actions-nodejs@v0.1.1"
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)
```bash
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](./LICENSE).