Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Output package version (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturner committed Sep 9, 2023
1 parent db783eb commit b8d8f4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions aws/smarthome-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b8d8f4b

Please sign in to comment.