There was an error while loading. Please reload this page.
1 parent 0b36784 commit 7a5fc07Copy full SHA for 7a5fc07
1 file changed
.github/workflows/publish.yml
@@ -38,14 +38,18 @@ jobs:
38
- name: Publish to NPM
39
working-directory: './dist/'
40
run: |
41
- # Определяем тег на основе версии
42
- TAG="latest"
43
VERSION=${{ github.ref_name }}
+ CLEAN_VERSION=${VERSION#v}
+
44
+ # Sync version with release tag
45
+ npm version $CLEAN_VERSION --no-git-tag-version
46
47
+ # Determine dist-tag
48
+ TAG="latest"
49
if [[ "$VERSION" == *"next"* ]]; then
50
TAG="next"
51
elif [[ "$VERSION" == *"rc"* ]]; then
52
TAG="rc"
53
fi
54
- # Публикуем (provenance добавится автоматически)
55
npm publish --tag $TAG --access public
0 commit comments