From 875c0e3498942a8cebd4e5ee47b66818f25bd250 Mon Sep 17 00:00:00 2001 From: AlexeyKorshun Date: Mon, 4 Nov 2019 16:53:15 +0600 Subject: [PATCH] Update workflows (#4) * Update exec workflow * added release workflow --- .github/workflows/exec.yml | 20 ++++++-------------- .github/workflows/release.yml | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/exec.yml b/.github/workflows/exec.yml index 0dbe9b8..bde3a45 100644 --- a/.github/workflows/exec.yml +++ b/.github/workflows/exec.yml @@ -1,20 +1,12 @@ name: Test extension -on: push +on: pull_request jobs: build: name: Exec runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Install npm - uses: actions/npm@master - with: - args: install - - name: Install zem - uses: actions/npm@master - with: - args: install -g zem - - name: Exec - uses: actions/npm@master - with: - args: run exec + - uses: actions/checkout@master + - name: test + uses: actions/setup-node@master + - run: npm install + - run: npm run exec diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..25a7ead --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: Release +on: release +jobs: + build: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - run: npm install + - run: npm run exec + - name: Publish + uses: artemnovichkov/action-zem@master + env: + ZEM_TOKEN: ${{ secrets.ZEM_TOKEN }} + with: + args: publish