-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a884de8
commit d950824
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |