From 90bd5e4759bd31cc25b6f42e88d07ed05b969cec Mon Sep 17 00:00:00 2001 From: aardizio Date: Fri, 19 Feb 2021 09:54:23 +0100 Subject: [PATCH] Take change from jerome --- .github/workflows/npmpublish.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index cfdc67a7..58827530 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -21,6 +21,14 @@ jobs: - run: npm run lint - run: npm run coverage + publish-npm: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node uses: actions/setup-node@v2 with: @@ -28,9 +36,15 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Install + run: npm ci + + - name: Build + run: npm run build:prod + + - name: Install Production run: npm ci --production - name: Publish - run: npm publish --tags + run: npm publish --prepublishOnly env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} -- 2.34.1