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

Output package version #26

Merged
merged 3 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading