Skip to content

Commit

Permalink
ASMO-6379 change package version by cicd
Browse files Browse the repository at this point in the history
so we dont need to do that manually before tagging anymore
  • Loading branch information
agentschmitt committed Dec 6, 2024
1 parent 538825f commit 216be9b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- run: node --version
- run: npm clean-install
- run: npm run build
- if: startsWith(github.ref, 'refs/tags/')
name: set package.json version by tag
run: npm version --allow-same-version --no-commit-hooks --no-git-tag-version from-git
- if: startsWith(github.ref, 'refs/tags/')
uses: JS-DevTools/npm-publish@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ Full documentation is [on the Wiki](https://github.com/recogito/recogito-js/wiki
[BSD 3-Clause](LICENSE) (= feel free to use this code in whatever way
you wish. But keep the attribution/license file, and if this code
breaks something, don't complain to us :-)

## How to publish

- Create & Push a tag with new version number
- The CICD actions will take this version number for npm package automatically
- Check github action to validated, that package was released to npm registry.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samhammer/recogito-js",
"version": "1.8.12",
"version": "0.0.0",
"description": "A JavaScript library for text annotation",
"main": "dist/recogito.min.js",
"typings": "typings/index.d.ts",
Expand Down

0 comments on commit 216be9b

Please sign in to comment.