diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 68befcbfd0..4c075a3d94 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,10 +66,10 @@ jobs: # https://docs.npmjs.com/trusted-publishers - name: Publish to npm - run: npm publish + run: npm publish --tag latest - - name: Push commit and tag - run: git push origin main --follow-tags + - name: Push tag + run: git push origin v${{ inputs.version }} - name: Create GitHub Release run: gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes diff --git a/package.json b/package.json index 794d09e89b..6967198ea3 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,7 @@ "eslint:fix": "node --run eslint -- --fix", "prettier:check": "prettier --check .", "prettier:format": "prettier --write .", - "typecheck": "tsc --build", - "prepublishOnly": "npm install && node --run build", - "postpublish": "git push --follow-tags origin HEAD" + "typecheck": "tsc --build" }, "devDependencies": { "@biomejs/biome": "2.3.8",