Skip to content

Commit 80ee806

Browse files
authored
Merge pull request #589 from buildo/publish_on_github
2 parents 5b63e97 + 0ba04e2 commit 80ee806

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ci/tasks/release.sh

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -e
55
LATEST_TAG=$(git describe --tags)
66
VERSION=${LATEST_TAG#v}
77

8+
89
mkdir -p $HOME/.ssh
910
ssh-keyscan github.com >> $HOME/.ssh/known_hosts
1011
echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa
@@ -25,3 +26,6 @@ git push origin HEAD:main
2526

2627
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> $HOME/.npmrc
2728
pnpm publish --git-checks false
29+
30+
pnpm config set '//npm.pkg.github.com/:_authToken' "$GITHUB_TOKEN"
31+
pnpm publish --git-checks false --access public --registry=https://npm.pkg.github.com

ci/tasks/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ caches:
1414
params:
1515
NPM_TOKEN: ((npm_token))
1616
SSH_PRIVATE_KEY: ((private-key))
17+
GITHUB_TOKEN: ((github-token))
1718

1819
run:
1920
path: ci/tasks/release.sh

0 commit comments

Comments
 (0)