From: aardizio Date: Fri, 19 Feb 2021 08:54:23 +0000 (+0100) Subject: Take change from jerome X-Git-Tag: v2.0.0-beta.5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=90bd5e4759bd31cc25b6f42e88d07ed05b969cec;hp=28fddf293fd67d21f1bd9ce7098154df4f0fdd3d;p=poolifier.git Take change from jerome --- 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}}