diff --git a/.builds/check.yml b/.builds/check.yml index 8b744c0..a4ab938 100644 --- a/.builds/check.yml +++ b/.builds/check.yml @@ -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 git@github.com: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 git@github.com:robsimmons/dusa.git + git push github publish npm publish fi