Skip to content

Commit

Permalink
Test publish dry run workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed May 9, 2024
1 parent a884de8 commit d950824
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .builds/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,20 @@ tasks:
npm install
npm run build
- github: |
if [ "$GIT_REF" == "refs/heads/main" ] || [ "$GIT_REF" == "refs/heads/publish" ]
if [ "$GIT_REF" == "refs/heads/main" ]
then
cd dusa
echo "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" > ~/.ssh/known_hosts
git remote add github [email protected]:robsimmons/dusa.git
git push github main
git push github publish
fi
- publish: |
if [ "$GIT_REF" == "refs/heads/publish" ]
then
cd dusa
npm publish --dry-run
echo "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" > ~/.ssh/known_hosts
git remote add github [email protected]:robsimmons/dusa.git
git push github publish
npm publish
fi

0 comments on commit d950824

Please sign in to comment.