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