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 a486b44 commit 9900090Copy full SHA for 9900090
.github/workflows/publish-js.yml
@@ -34,6 +34,17 @@ jobs:
34
- name: Install dependencies
35
run: npm ci
36
37
+ - name: Set version from release tag
38
+ if: github.event_name == 'release'
39
+ run: |
40
+ VERSION="${GITHUB_REF_NAME#v}"
41
+ npm version "$VERSION" --no-git-tag-version
42
+
43
+ - name: Show publish metadata
44
45
+ echo "Tag: ${GITHUB_REF_NAME:-manual}"
46
+ npm pkg get name version
47
48
- name: Build
49
run: npm run build
50
0 commit comments