We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99e869 commit 9212624Copy full SHA for 9212624
.github/workflows/npmpublish.yml
@@ -21,4 +21,9 @@ jobs:
21
node-version: 20
22
registry-url: https://registry.npmjs.org/
23
- run: npm ci
24
- - run: npm publish --provenance
+ - name: Set version from release tag
25
+ run: |
26
+ VERSION="${{ github.event.release.tag_name }}"
27
+ VERSION="${VERSION#v}"
28
+ jq --arg v "$VERSION" '.version = $v' package.json > package.json.tmp && mv package.json.tmp package.json
29
+ - run: npm publish --provenance
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "esp-web-tools",
3
- "version": "10.2.0",
+ "version": "0.0.0",
4
"description": "Web tools for ESP devices",
5
"main": "dist/install-button.js",
6
"repository": "https://github.com/esphome/esp-web-tools",
0 commit comments