Skip to content

Commit

Permalink
update release-stable (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
halocline authored Jul 23, 2024
1 parent 05770f2 commit e4650ef
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions grommet-leaflet/tools/release-stable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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';

Expand All @@ -15,14 +16,10 @@ if (process.env.CI) {
git()
.clone(repoURL, localFolder)
.then(() => git(localFolder).checkout(BRANCH))
.then(() =>
deleteAsync([
`${localFolder}/**/*`,
`!${localFolder}/grommet-leaflet`,
`!${localFolder}/*/package.json`,
]),
)
.then(() => fs.move('package.json', `${localLibrary}/package.json`))
.then(() => deleteAsync([`${localFolder}/**/*`]))
.then(() => {
fs.copy(localLibrary, localFolder);
fs.copy(localDist, `${localFolder}/dist`);
})
.then(() => git(localFolder).add(['--all', '.']))
Expand Down

0 comments on commit e4650ef

Please sign in to comment.