1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Allow for channel update to stable

This commit is contained in:
Michael Hollister 2024-11-21 11:51:46 -06:00
parent fad2c2bfa2
commit a2ded729d1
4 changed files with 33 additions and 4 deletions

View file

@ -95,6 +95,7 @@ module.exports = {
],
hooks: {
readPackageJson: async (forgeConfig, packageJson) => {
packageJson.commit = cp.execSync('git rev-parse HEAD').toString().trim();
packageJson.channel = process.env.FCAST_CHANNEL ? process.env.FCAST_CHANNEL : 'stable';
if (packageJson.channel !== 'stable') {
packageJson.channelVersion = process.env.FCAST_CHANNEL_VERSION ? process.env.FCAST_CHANNEL_VERSION : '1';