From c781cae498f514a255be69612a31df8771ac176d Mon Sep 17 00:00:00 2001 From: Leszek Manicki Date: Fri, 27 Sep 2019 12:32:50 +0200 Subject: [PATCH] Converted actions to YAML syntax The result of running `migrate-actions` tool, as per https://help.github.com/en/articles/migrating-github-actions-from-hcl-syntax-to-yaml-syntax. --- .github/main.workflow | 29 ----------------------------- .github/workflows/push.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 29 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/push.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 150e9e6..0000000 --- a/.github/main.workflow +++ /dev/null @@ -1,29 +0,0 @@ -workflow "Build, Test, and Publish" { - on = "push" - resolves = ["Publish"] -} - -action "Build" { - uses = "actions/npm@master" - args = "ci" -} - -action "Test" { - needs = "Build" - uses = "actions/npm@master" - args = "test" -} - -# Filter for a new tag -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"] -} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..3cd398c --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,26 @@ +on: push +name: Build, Test, and Publish +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build + uses: actions/npm@master + with: + args: ci + - 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