Skip to content

Commit 1ea28ab

Browse files
authored
Fix publishing new version errors (#671)
1 parent abaf79f commit 1ea28ab

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/npmpublish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ jobs:
2020
with:
2121
node-version: 20
2222
registry-url: https://registry.npmjs.org/
23+
- name: Update npm to latest
24+
run: npm install -g npm@latest
2325
- run: npm ci
2426
- name: Set version from release tag
2527
run: |
2628
VERSION="${{ github.event.release.tag_name }}"
2729
VERSION="${VERSION#v}"
2830
jq --arg v "$VERSION" '.version = $v' package.json > package.json.tmp && mv package.json.tmp package.json
2931
- run: npm publish --provenance
32+

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "0.0.0",
44
"description": "Web tools for ESP devices",
55
"main": "dist/install-button.js",
6-
"repository": "https://github.com/esphome/esp-web-tools",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/esphome/esp-web-tools"
9+
},
710
"author": "ESPHome maintainers",
811
"license": "Apache-2.0",
912
"scripts": {

0 commit comments

Comments
 (0)