Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

name: exist-db CI

on: [push, pull_request]
on: [push]

jobs:
build:
Expand Down Expand Up @@ -60,32 +60,26 @@ jobs:
- name: lint commit message
uses: wagoid/commitlint-github-action@v6

# Commit repo.xml file
- name: Commit and Push
if: ${{ matrix.java-version == 17 && github.event_name == 'push' && github.ref != 'refs/heads/master' }}
uses: actions-x/commit@v6
with:
message: "fix(repo.xml): update [skip ci]"

release:
name: Release
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: npm
cache: npm
node-version: lts/*
- name: Install dependencies
run: npm ci --no-optional
run: npm ci --no-optional
- name: Perform Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLIC_REPO: ${{ secrets.PUBLIC_REPO }}
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: npx semantic-release
# TODO(DP):
# - add secrets to github
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
build/*
.existdb.json
.DS_Store
expath-pkg.xml
.vscode/
.idea/
node_modules/
7 changes: 2 additions & 5 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"plugins": [
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "", "release": "patch" }
]
"preset": "conventionalcommits"
},
"@semantic-release/release-notes-generator",
{
Expand All @@ -16,7 +13,7 @@
"prepareCmd": "ant -Dapp.version=${nextRelease.version}"
}],
["@semantic-release/git", {
"assets": ["package.json", "package-lock.json"],
"assets": ["expath-pkg.xml", "repo.xml"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
["@semantic-release/github", {
Expand Down
41 changes: 23 additions & 18 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"author": "Office of the Historian",
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-angular": "^18.4.3",
"@commitlint/config-conventional": "^18.4.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
"semantic-release": "^22.0.12"
}
}