Skip to content

Commit 8f83ccd

Browse files
authored
Tweak publishing workflow (#3925)
1 parent 8a76e9e commit 8f83ccd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ jobs:
6666
6767
# https://docs.npmjs.com/trusted-publishers
6868
- name: Publish to npm
69-
run: npm publish
69+
run: npm publish --tag latest
7070

71-
- name: Push commit and tag
72-
run: git push origin main --follow-tags
71+
- name: Push tag
72+
run: git push origin v${{ inputs.version }}
7373

7474
- name: Create GitHub Release
7575
run: gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@
4747
"eslint:fix": "node --run eslint -- --fix",
4848
"prettier:check": "prettier --check .",
4949
"prettier:format": "prettier --write .",
50-
"typecheck": "tsc --build",
51-
"prepublishOnly": "npm install && node --run build",
52-
"postpublish": "git push --follow-tags origin HEAD"
50+
"typecheck": "tsc --build"
5351
},
5452
"devDependencies": {
5553
"@biomejs/biome": "2.3.8",

0 commit comments

Comments
 (0)