diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d199d22..8d4c257 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,6 +23,8 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_READ }} + - run: npm version --git-tag-version false ${{github.event.release.tag_name}} + - run: npm run build --if-present env: NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_READ }} diff --git a/aws/smarthome-lambda.js b/aws/smarthome-lambda.js index e6a41bb..4172d4c 100644 --- a/aws/smarthome-lambda.js +++ b/aws/smarthome-lambda.js @@ -4,9 +4,13 @@ const Logger = require('@matthewturner/smartheat-core/core/Logger'); const HandlerRegistry = require('./HandlerRegistry'); const logger = new Logger(process.env.LOG_LEVEL || Logger.DEBUG); +const { version } = require('../package.json'); exports.handler = async (ev, context) => { logger.level = process.env.LOG_LEVEL || Logger.DEBUG; + + logger.debug(`SmartHome Version: ${version}`); + logEntry(ev, context); const event = extractEvent(ev);