diff --git a/ci/tasks/release.sh b/ci/tasks/release.sh index da950e123..4ae184246 100755 --- a/ci/tasks/release.sh +++ b/ci/tasks/release.sh @@ -5,6 +5,7 @@ set -e LATEST_TAG=$(git describe --tags) VERSION=${LATEST_TAG#v} + mkdir -p $HOME/.ssh ssh-keyscan github.com >> $HOME/.ssh/known_hosts echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa @@ -25,3 +26,6 @@ git push origin HEAD:main echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> $HOME/.npmrc pnpm publish --git-checks false + +pnpm config set '//npm.pkg.github.com/:_authToken' "$GITHUB_TOKEN" +pnpm publish --git-checks false --access public --registry=https://npm.pkg.github.com diff --git a/ci/tasks/release.yml b/ci/tasks/release.yml index 15203afe2..83afc3ae4 100644 --- a/ci/tasks/release.yml +++ b/ci/tasks/release.yml @@ -14,6 +14,7 @@ caches: params: NPM_TOKEN: ((npm_token)) SSH_PRIVATE_KEY: ((private-key)) + GITHUB_TOKEN: ((github-token)) run: path: ci/tasks/release.sh