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:
parent
fad2c2bfa2
commit
a2ded729d1
4 changed files with 33 additions and 4 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue