File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 5
5
jobs :
6
6
publish :
7
7
runs-on : ubuntu-latest
8
+
8
9
permissions :
9
10
contents : write
10
- packages : write
11
+ id-token : write
12
+
11
13
steps :
12
14
- uses : actions/checkout@v4
13
15
- run : git config user.name release-bot
14
16
-
run :
git config user.email [email protected]
15
17
16
- # Setup .npmrc file to publish to GitHub Packages
17
18
- uses : actions/setup-node@v3
18
19
with :
19
20
node-version : ' 20.x'
20
- registry-url : ' https://npm.pkg.github.com'
21
- # Defaults to the user or organization that owns the workflow file
22
- scope : ' @danielgelling'
21
+ registry-url : ' https://registry.npmjs.org/'
22
+
23
23
- run : npm ci
24
24
25
25
- run : |
30
30
env:
31
31
TAG_NAME: ${{ github.event.release.tag_name }}
32
32
33
- - run : npm publish
33
+ - run : npm publish --provenance --access public
34
34
env :
35
35
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
<p >
2
2
<a href =" https://github.com/danielgelling/p1-monitor/actions/workflows/test-suite.yaml " ><img alt =" Test suite " src =" https://github.com/danielgelling/p1-monitor/actions/workflows/test-suite.yaml/badge.svg?branch=master " /></a >
3
- <a href =" https://github.com/danielgelling/p1-monitor/pkgs/npm/p1-monitor " ><img alt =" Downloads " src =" https://img.shields.io/badge/downloads-69-green " /></a >
4
- <a href =" https://github.com/danielgelling/p1-monitor/blob/master/LICENSE " ><img alt =" License: MIT " src =" https://img.shields.io/badge/License-MIT-green.svg " /></a >
3
+ <a href =" https://github.com/danielgelling/p1-monitor/actions/workflows/test-suite.yaml " ><img alt =" Test suite " src =" https://img.shields.io/github/issues-raw/danielgelling/p1-monitor " /></a >
4
+ <a href =" https://www.npmjs.com/package/p1-monitor " ><img alt =" Downloads " src =" https://img.shields.io/npm/dt/p1-monitor " /></a >
5
+ <a href =" https://www.npmjs.com/package/p1-monitor/v/latest?activeTab=versions " ><img alt =" Latest version " src =" https://img.shields.io/npm/v/p1-monitor " /></a >
6
+ <a href =" https://github.com/danielgelling/p1-monitor/blob/master/LICENSE " ><img alt =" License: MIT " src =" https://img.shields.io/npm/l/p1-monitor " /></a >
5
7
</p >
6
8
7
9
# About
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @danielgelling/ p1-monitor" ,
2
+ "name" : " p1-monitor" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " Module to monitor a Smart Meter using its P1 port" ,
5
+ "author" :
" Daniel Gelling <[email protected] >" ,
6
+ "license" : " MIT" ,
5
7
"main" : " lib/index.js" ,
6
8
"scripts" : {
7
9
"build" : " tsc" ,
10
12
},
11
13
"repository" : {
12
14
"type" : " git" ,
13
- "url" : " github.com/danielgelling/p1-monitor"
15
+ "url" : " https:// github.com/danielgelling/p1-monitor"
14
16
},
15
- "author" :
" Daniel Gelling <[email protected] >" ,
16
- "license" : " MIT" ,
17
17
"dependencies" : {
18
18
"luxon" : " ^3.4.4" ,
19
19
"node" : " ^20.10.0" ,
You can’t perform that action at this time.
0 commit comments