From 5b89d456046e54b50388d6d289c834b0d3248351 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 9 Apr 2020 18:37:18 +0100 Subject: [PATCH] Update publish-to-npm.yml --- .github/workflows/publish-to-npm.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml index 114c62164..432c99093 100644 --- a/.github/workflows/publish-to-npm.yml +++ b/.github/workflows/publish-to-npm.yml @@ -12,7 +12,10 @@ jobs: node-version: '12.x' registry-url: 'https://registry.npmjs.org' - run: npm ci - - run: npm version --no-git-tag-version ${{ github.ref }} - - run: npm-publish + - name: Get the version + id: version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }} + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}