Skip to content

Commit

Permalink
Merge pull request #14 from sillsdev/changelog
Browse files Browse the repository at this point in the history
commit version number and changelog (#14)
  • Loading branch information
andrew-polk authored Oct 9, 2024
2 parents 4e9ae48 + 2914fd1 commit 204839d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,31 @@ jobs:
- name: Install dependencies
run: npm install

# We've configured nx to update version numbers in the primary package.json files (rather than in the dist builds to be published)
# Therefore this step must be done before build so that the new version numbers are copied to dist/package.json
- name: Update version numbers in the persistant package.json files
run: npx nx release version

- name: Build package
run: npx nx build @ethnolib/language-chooser-react-mui

# find-language is a dependency of langauge-chooser-react-mui so it will have been built in the build step
- name: Run tests
run: npx nx test @ethnolib/find-language

- name: Set name and email for git so we can tag
- name: Set name and email for git so we can commit and tag
run: |
git config user.name "Github Actions"
git config user.email " [email protected]"
git config user.email "[email protected]"
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx nx release --yes

- name: Push the release commit (with version number update and changelog)
run: git push

- name: Push the release tag
run: git push --tags

Expand Down
12 changes: 8 additions & 4 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@
],
"release": {
"projectsRelationship": "independent",
"git": {
"commit": false
},
"version": {
"generatorOptions": {
"packageRoot": "{projectRoot}/dist"
"packageRoot": "{projectRoot}"
},
"conventionalCommits": true
},
"changelog": {
"projectChangelogs": {
"renderOptions": {
"authors": false
}
}
},
"projects": [
"@ethnolib/language-chooser-react-mui",
"@ethnolib/find-language"
Expand Down

0 comments on commit 204839d

Please sign in to comment.