mirror of https://github.com/mthenw/frontail.git
converted main.workflow to Actions V2 yml files (#183)
parent
09acdc62af
commit
b31de76d33
|
@ -1,34 +0,0 @@
|
|||
workflow "Build, Lint, Test, and Publish" {
|
||||
on = "push"
|
||||
resolves = ["Publish"]
|
||||
}
|
||||
|
||||
action "Build" {
|
||||
uses = "actions/npm@master"
|
||||
args = "install"
|
||||
}
|
||||
|
||||
action "Lint" {
|
||||
needs = "Build"
|
||||
uses = "actions/npm@master"
|
||||
args = "run lint"
|
||||
}
|
||||
|
||||
action "Test" {
|
||||
needs = "Lint"
|
||||
uses = "actions/npm@master"
|
||||
args = "test"
|
||||
}
|
||||
|
||||
action "Tag" {
|
||||
needs = "Test"
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "tag"
|
||||
}
|
||||
|
||||
action "Publish" {
|
||||
needs = "Tag"
|
||||
uses = "actions/npm@master"
|
||||
args = "publish --access public"
|
||||
secrets = ["NPM_AUTH_TOKEN"]
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
on: push
|
||||
name: Build, Lint, Test, and Publish
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Build
|
||||
uses: actions/npm@master
|
||||
with:
|
||||
args: install
|
||||
- name: Lint
|
||||
uses: actions/npm@master
|
||||
with:
|
||||
args: run lint
|
||||
- name: Test
|
||||
uses: actions/npm@master
|
||||
with:
|
||||
args: test
|
||||
- name: Tag
|
||||
uses: actions/bin/filter@master
|
||||
with:
|
||||
args: tag
|
||||
- name: Publish
|
||||
uses: actions/npm@master
|
||||
env:
|
||||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||
with:
|
||||
args: publish --access public
|
Loading…
Reference in New Issue