converted main.workflow to Actions V2 yml files
This commit is contained in:
parent
87068f0ccf
commit
f4987317c6
|
@ -1,39 +0,0 @@
|
||||||
workflow "Build and Publish" {
|
|
||||||
on = "push"
|
|
||||||
resolves = ["Publish"]
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Shell Lint" {
|
|
||||||
uses = "actions/bin/shellcheck@master"
|
|
||||||
args = "entrypoint.sh"
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Build Docker" {
|
|
||||||
needs = ["Shell Lint"]
|
|
||||||
uses = "actions/docker/cli@master"
|
|
||||||
args = "build -t npm ."
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Build" {
|
|
||||||
needs = ["Build Docker"]
|
|
||||||
uses = "actions/npm@master"
|
|
||||||
args = "install"
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Docker Tag" {
|
|
||||||
needs = ["Build"]
|
|
||||||
uses = "actions/docker/tag@master"
|
|
||||||
args = "npm github/npm --no-latest"
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Publish Filter" {
|
|
||||||
needs = ["Build"]
|
|
||||||
uses = "actions/bin/filter@master"
|
|
||||||
args = "branch master"
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Publish" {
|
|
||||||
needs = "Publish Filter"
|
|
||||||
uses = "mikeal/merge-release@master"
|
|
||||||
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
|
|
||||||
}
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
on: push
|
||||||
|
name: Build and Publish
|
||||||
|
jobs:
|
||||||
|
shellLint:
|
||||||
|
name: Shell Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Shell Lint
|
||||||
|
uses: actions/bin/shellcheck@master
|
||||||
|
with:
|
||||||
|
args: entrypoint.sh
|
||||||
|
- name: Build Docker
|
||||||
|
uses: actions/docker/cli@master
|
||||||
|
with:
|
||||||
|
args: build -t npm .
|
||||||
|
- name: Build
|
||||||
|
uses: actions/npm@master
|
||||||
|
with:
|
||||||
|
args: install
|
||||||
|
- name: Publish Filter
|
||||||
|
uses: actions/bin/filter@master
|
||||||
|
with:
|
||||||
|
args: branch master
|
||||||
|
- name: Publish
|
||||||
|
uses: mikeal/merge-release@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
Loading…
Reference in New Issue