Skip to content

Commit fa0c3ea

Browse files
committed
Fix pubish
1 parent 6d40516 commit fa0c3ea

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.npmignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ node_modules
33
dist
44
coverage
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

0 commit comments

Comments
 (0)