add jenkins snippet

This commit is contained in:
2020-01-16 20:35:24 +01:00
parent c59432b53d
commit 3bd332f52a
5 changed files with 152 additions and 0 deletions
README.md
snippets/jenkins

@@ -0,0 +1,7 @@
const fs = require ('fs');
const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8'));
[
,, pkg.version
] = process.argv;
fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));