From df431514d28fd32d2bd69a50eeb8edf3e6cc1d44 Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Sun, 10 Nov 2024 02:30:58 +0100 Subject: [PATCH] fix: Adjust release script --- .releaserc.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index b574784..23435e7 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -15,8 +15,10 @@ [ "@semantic-release/exec", { - "verifyConditionsCmd": "echo //npm.pkg.github.com/:_authToken=${process.env.GITHUB_TOKEN} > $TMPDIR/github.npmrc && npm whoami --userconfig $TMPDIR/github.npmrc --registry https://npm.pkg.github.com/", - "publishCmd": "npm publish --userconfig $TMPDIR/github.npmrc --tag ${nextRelease.channel} --registry https://npm.pkg.github.com/ --no-git-tag-version" + "verifyConditionsCmd": "echo //npm.pkg.github.com/:_authToken=${process.env.GITHUB_TOKEN} > /tmp/github.npmrc && npm whoami --userconfig /tmp/github.npmrc --registry https://npm.pkg.github.com/", + "publishCmd": "npm publish --userconfig /tmp/github.npmrc --tag ${nextRelease.channel} --registry https://npm.pkg.github.com/ --no-git-tag-version", + "successCmd": "rm /tmp/github.npmrc", + "failCmd": "rm /tmp/github.npmrc" } ] ]