File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ jobs:
5252 id : extract_version
5353 run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
5454
55+ - run : npm version ${{ github.event.release.tag_name }} --no-git-tag-version
5556 - name : Publish to npm
5657 env :
5758 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5859 VERSION : ${{ env.VERSION }}
5960 run : |
61+ VERSION=${{ github.event.release.tag_name }}
6062 if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
61- npm publish --access public --version $VERSION
63+ npm publish
6264 else
63- npm publish --tag beta --access public --version $VERSION
65+ npm publish --tag beta
6466 fi
Original file line number Diff line number Diff line change @@ -3,9 +3,12 @@ node_modules
33dist
44coverage
55.github
6- src /__tests__
6+ src
7+ dist /__tests__
78
89# Configuration files
10+ .editorconfig
11+ .gitattributes
912.gitignore
1013.eslintignore
1114.eslintrc.js
You can’t perform that action at this time.
0 commit comments