converted main.workflow to Actions V2 yml files (#183)

pull/194/head
Maciej Winnicki 2019-09-13 21:19:15 +02:00 committed by GitHub
parent 09acdc62af
commit b31de76d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 34 deletions

34
.github/main.workflow vendored
View File

@ -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"]
}

30
.github/workflows/push.yml vendored Normal file
View File

@ -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