Skip to content

Commit

Permalink
update release-stable (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
halocline authored Jul 23, 2024
1 parent 219e990 commit 0d0d7bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 packageInfo = ['package.json', 'LICENSE', 'README.md'];

const BRANCH = 'grommet-leaflet-stable';

Expand All @@ -17,7 +18,9 @@ if (process.env.CI) {
.then(() => git(localFolder).checkout(BRANCH))
.then(() => deleteAsync([`${localFolder}/**/*`]))
.then(() => fs.copy(localDist, `${localFolder}/dist`))
.then(() => fs.copy('package.json', `${localFolder}/package.json`))
.then(() =>
packageInfo.forEach(file => fs.copy(file, `${localFolder}/${file}`)),
)
.then(() => git(localFolder).add(['--all', '.']))
.then(() => git(localFolder).commit(`${BRANCH} updated`))
.then(() => git(localFolder).push('origin', BRANCH))
Expand Down

0 comments on commit 0d0d7bf

Please sign in to comment.