Skip to content

Commit

Permalink
Pull version out of package
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickreimer committed Oct 17, 2019
1 parent 0ffc4db commit d066835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmds/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const fs = require('fs');
const chalk = require('chalk');
const axios = require('axios');
const ora = require('ora');
const version = require('../../package.json').version;

const readConfigFromFile = () => {
try {
Expand Down Expand Up @@ -90,7 +91,7 @@ exports.handler = async args => {
data: config,
headers: {
'StaticKit-Deploy-Key': deployKey,
'User-Agent': 'StaticKit CLI/1.0.0-beta.0'
'User-Agent': `@statickit/cli@${version}`
},
validateStatus: status => status < 500
});
Expand Down

0 comments on commit d066835

Please sign in to comment.