-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(CI/CD): replace shell script by JavaScript #3454
base: main
Are you sure you want to change the base?
Conversation
🔭🐙🐈 Test this branch here: https://db-ui.github.io/mono/review/refactor-cicd-replace-shell-by-javascript |
@@ -0,0 +1,65 @@ | |||
import fs from 'node:fs'; | |||
import path from 'node:path'; | |||
import tar from 'tar'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have this dependency in our package.json
?
|
||
console.log('📥 Get gh-pages tar'); | ||
fetch(`https://github.com/${OWNER_NAME}/${REPO_NAME}/tarball/gh-pages`) | ||
.then((res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use async
& await
here, instead of multiple then
Proposed changes
replaced pipeline shell scripts by JavaScript files.
tested within the pipeline with https://github.com/db-ui/mono/releases/tag/v0.6.3-5
Types of changes
Further comments