From d508dd44f7b61eecff041bc2ef77b13361aee472 Mon Sep 17 00:00:00 2001 From: Ivo Heidelbach Date: Fri, 3 Mar 2023 11:13:20 +0100 Subject: [PATCH] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1a07cf5..e983193 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,10 +17,9 @@ jobs: node-version: 16 - run: npm ci - run: npm test - - run: npm run build publish-npm: - needs: build + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -29,6 +28,7 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}