commit 906bcae362308fa66ad5ba2baf943ad94cb05c5e
parent 35cf2bd3e2fdda1b0df2e502dccea8982639f404
Author: finwo <finwo@pm.me>
Date: Mon, 11 May 2020 09:57:05 +0200
Run unit tests before publishing
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
@@ -15,7 +15,8 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- - run: npm build
+ - run: npm build --if-present
+ - run: npm test
- run: if [ $(npm view $(node -p "require('./package.json').name") version) != $(node -p "require('./package.json').version") ]; then npm publish ; fi
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}