Skip to content

Commit 5b25afa

Browse files
committed
Auto-set package version from git tag in publish workflow
1 parent f09087f commit 5b25afa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
node-version: 20
1818
registry-url: https://registry.npmjs.org
1919

20+
- name: Set version from git tag
21+
run: npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version
22+
2023
- run: npm ci
2124

2225
- run: npm run typecheck

0 commit comments

Comments
 (0)