diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 17ee847b..6291e2db 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -9,11 +9,15 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 + - name: Place tag in environment run: | echo "SOURCE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV - echo "REPO_NAME=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV + + - name: Setting package.json version + run: npm version --no-git-tag-version "${SOURCE_TAG#v}" - uses: actions/setup-node@v1 with: