serverless/.github/prepare-canary.js
Austen bd6a242812
chore: Embed dashboard plugin into framework (#12332)
* chore: initial removal of dashboard plugin as dependency and deprecated logic

* chore: continue refactor

* chore: move dashboard into framework and reduce logic
2024-01-23 00:28:56 -08:00

15 lines
404 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
const packageJsonPath = path.resolve(__dirname, '../package.json');
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
packageJson.version = `${packageJson.version}-${process.env.GITHUB_SHA.slice(0, 8)}`;
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`);