Skip to content

Commit

Permalink
updated release-stable (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
halocline authored Jul 23, 2024
1 parent e5e50b7 commit 219e990
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions grommet-leaflet/tools/release-stable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,17 @@ import 'dotenv/config';
const repoURL = `https://${process.env.GH_TOKEN}@github.com/grommet/grommet-leaflet.git`;
const localFolder = path.resolve('.tmp/grommet-leaflet');
const localDist = path.resolve('dist');
const localLibrary = path.resolve('lib');

const BRANCH = 'grommet-leaflet-stable';

if (process.env.CI) {
deleteAsync(localFolder).then(() => {
git()
.clone(repoURL, localFolder)
.then(() => fs.move('package.json', `${localLibrary}/package.json`))
.then(() => git(localFolder).checkout(BRANCH))
.then(() => deleteAsync([`${localFolder}/**/*`]))
.then(() => {
fs.copy(localLibrary, localFolder);
fs.copy(localDist, `${localFolder}/dist`);
})
.then(() => fs.copy(localDist, `${localFolder}/dist`))
.then(() => fs.copy('package.json', `${localFolder}/package.json`))
.then(() => git(localFolder).add(['--all', '.']))
.then(() => git(localFolder).commit(`${BRANCH} updated`))
.then(() => git(localFolder).push('origin', BRANCH))
Expand Down

0 comments on commit 219e990

Please sign in to comment.