harness-auto-docs 0.2.8 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,11 @@ jobs:
24
24
  - name: Install dependencies
25
25
  run: pnpm install --frozen-lockfile
26
26
 
27
+ - name: Set version from tag
28
+ run: node -e "const pkg=require('./package.json');pkg.version='${TAG#v}';require('fs').writeFileSync('package.json',JSON.stringify(pkg,null,2)+'\n');console.log('Version set to',pkg.version)" && echo "VERSION=${TAG#v}" >> $GITHUB_ENV
29
+ env:
30
+ TAG: ${{ github.ref_name }}
31
+
27
32
  - name: Build
28
33
  run: pnpm build
29
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-auto-docs",
3
- "version": "0.2.8",
3
+ "version": "0.3.1",
4
4
  "description": "Auto-generate Harness Engineering docs on git tag",
5
5
  "type": "module",
6
6
  "bin": {