Skip to content

Commit d1b517f

Browse files
committed
Added publish versioning to come from the release tag
1 parent f2d6979 commit d1b517f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ jobs:
2222
registry-url: 'https://registry.npmjs.org'
2323
cache: 'npm'
2424

25+
- name: Update package.json version from release tag
26+
uses: cssnr/[email protected] # Use the latest version of the action
27+
with:
28+
# Optional: Specify the file containing the version (defaults to package.json)
29+
# file: 'path/to/your/package.json'
30+
31+
# Optional: Specify the field to update (defaults to 'version')
32+
# field: 'myCustomVersionField'
33+
34+
# Optional: Commit the changes back to the repository (defaults to true)
35+
commit: false
36+
37+
# Optional: Push the changes back to the repository (defaults to true)
38+
push: false
39+
2540
# Ensure npm 11.5.1 or later is installed
2641
- name: Update npm
2742
run: npm install -g npm@latest

0 commit comments

Comments
 (0)