Skip to content

Commit 6ee9d1c

Browse files
ci: remove dist-tag "$MAJOR" and dist-tag "$MAJOR.$MINOR"
NPM adds these automatically and because they are version ranges it is not allowed to use them as dist tags. I did not know that.
1 parent fbcb5e0 commit 6ee9d1c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

.github/workflows/many--publish-npm-package.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ jobs:
157157
run: |
158158
if [ "${{ needs.build.outputs.is_release }}" = "true" ]; then
159159
npm publish --registry ${{ matrix.registry_url }} --tag ${{ needs.build.outputs.npm_tag }}
160-
IFS='.' read -r MAJOR MINOR PATCH <<< "$PACKAGE_VERSION"
161-
npm dist-tag add "$PACKAGE_NAME@$PACKAGE_VERSION" "$MAJOR.$MINOR"
162-
npm dist-tag add "$PACKAGE_NAME@$PACKAGE_VERSION" "$MAJOR"
163160
elif [ "${{ needs.build.outputs.is_prerelease }}" = "true" ]; then
164161
npm version prerelease --preid "${{ needs.build.outputs.npm_tag }}" --no-git-tag-version
165162
npm publish --registry ${{ matrix.registry_url }} --tag ${{ needs.build.outputs.npm_tag }}

0 commit comments

Comments
 (0)