-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b06b9b
commit 447d893
Showing
3 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,21 @@ on: | |
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git config user.name release-bot | ||
- run: git config user.email [email protected] | ||
|
||
# Setup .npmrc file to publish to GitHub Packages | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://npm.pkg.github.com' | ||
# Defaults to the user or organization that owns the workflow file | ||
scope: '@danielgelling' | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
- run: npm ci | ||
|
||
- run: | | ||
|
@@ -30,6 +30,6 @@ jobs: | |
env: | ||
TAG_NAME: ${{ github.event.release.tag_name }} | ||
- run: npm publish | ||
- run: npm publish --provenance --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"name": "@danielgelling/p1-monitor", | ||
"name": "p1-monitor", | ||
"version": "1.0.0", | ||
"description": "Module to monitor a Smart Meter using its P1 port", | ||
"author": "Daniel Gelling <[email protected]>", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
|
@@ -10,10 +12,8 @@ | |
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "github.com/danielgelling/p1-monitor" | ||
"url": "https://github.com/danielgelling/p1-monitor" | ||
}, | ||
"author": "Daniel Gelling <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"luxon": "^3.4.4", | ||
"node": "^20.10.0", | ||
|