mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
* chore: initial removal of dashboard plugin as dependency and deprecated logic * chore: continue refactor * chore: move dashboard into framework and reduce logic
15 lines
404 B
JavaScript
Executable File
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`);
|