Skip to content

Commit

Permalink
Merge pull request #589 from buildo/publish_on_github
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro authored May 15, 2023
2 parents 5b63e97 + 0ba04e2 commit 80ee806
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/tasks/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions ci/tasks/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit 80ee806

@vercel
Copy link

@vercel vercel bot commented on 80ee806 May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 80ee806 May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.