From 1e23caf5cb05ad8220b0877cb535be78098742c7 Mon Sep 17 00:00:00 2001 From: David Sancho Date: Sun, 27 Sep 2020 17:54:53 +0200 Subject: [PATCH] Fix path release npm --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fc8256..8abbf6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -169,11 +169,12 @@ jobs: asset_content_type: application/gzip - name: Release nightly NPM package + if: "!startsWith(github.ref, 'refs/tags/v')" run: | npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN npm version prerelease --preid nightly.${{ steps.sha.outputs.sha_short }} -no-git-tag-version npm publish --access public --tag nightly - working-directory: ./_release + working-directory: ./release env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} @@ -182,6 +183,6 @@ jobs: run: | npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN npm publish --access public - working-directory: ./_release + working-directory: ./release env: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}