Skip to content

Commit

Permalink
update release-stable (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
halocline authored Jul 23, 2024
1 parent 5ac5228 commit 2486dba
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions grommet-leaflet/tools/release-stable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ if (process.env.CI) {
.clone(repoURL, localFolder)
.then(() => git(localFolder).checkout(BRANCH))
.then(() =>
deleteAsync([`${localFolder}/**/*`, `!${localFolder}/package.json`]),
deleteAsync([
`${localFolder}/**/*`,
`!${localFolder}/grommet-leaflet`,
`!${localFolder}/*/package.json`,
]),
)
.then(() => fs.copy(localDist, `${localFolder}/dist`))
.then(() => {
fs.copy(`${localFolder}/grommet-leaflet`, localFolder);
fs.copy(localDist, `${localFolder}/dist`);
})
.then(() => git(localFolder).add(['--all', '.']))
.then(() => git(localFolder).commit(`${BRANCH} updated`))
.then(() => git(localFolder).push('origin', BRANCH))
Expand Down

0 comments on commit 2486dba

Please sign in to comment.