From 7022c238fd5779a399c44150a8b939f8ca048fa6 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Tue, 15 Oct 2019 09:01:31 +0100 Subject: [PATCH] Add build and test stage --- .github/workflows/npmpublish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 152b894..ee3726f 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -10,6 +10,16 @@ on: jobs: build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 10 + - run: npm ci + - run: npm build + + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -20,6 +30,7 @@ jobs: - run: npm run bundlesize - run: npm run lint - run: npm test + - run: npm build publish-npm: needs: build