Skip to content

Commit d5e3503

Browse files
authored
add tag to npm publish command (#67)
1 parent e3996f0 commit d5e3503

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
npm_version=${{ github.ref_name }}
4040
echo "npm_version=${npm_version#v}" >> "$GITHUB_OUTPUT"
4141
- run: npm version --no-commit-hooks --no-git-tag-version ${{ steps.vars.outputs.npm_version }}
42-
- run: make publish
42+
- name: Publish to npm
43+
run: npm publish --tag ${{ github.ref_name }}
4344
env:
4445
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,4 @@ ci-check: deps build prettier
5353
fi; \
5454
exit 1; \
5555
fi
56-
@echo "✅ No uncommitted changes detected"
57-
58-
.PHONY: publish
59-
publish: test
60-
npm publish
56+
@echo "✅ No uncommitted changes detected"

0 commit comments

Comments
 (0)