Skip to content

Commit ddbee48

Browse files
authored
Merge pull request #12 from HistoryAtState/fix/ci-releases
fix(ci): ci enhancements
2 parents 2e4580b + 23fbe48 commit ddbee48

File tree

5 files changed

+1033
-1231
lines changed

5 files changed

+1033
-1231
lines changed

.github/workflows/build.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name: exist-db CI
77

8-
on: [push, pull_request]
8+
on: [push]
99

1010
jobs:
1111
build:
@@ -60,32 +60,26 @@ jobs:
6060
- name: lint commit message
6161
uses: wagoid/commitlint-github-action@v6
6262

63-
# Commit repo.xml file
64-
- name: Commit and Push
65-
if: ${{ matrix.java-version == 17 && github.event_name == 'push' && github.ref != 'refs/heads/master' }}
66-
uses: actions-x/commit@v6
67-
with:
68-
message: "fix(repo.xml): update [skip ci]"
69-
7063
release:
7164
name: Release
7265
runs-on: ubuntu-latest
7366
needs: build
7467
if: github.ref == 'refs/heads/master'
7568
steps:
7669
- name: Checkout
77-
uses: actions/checkout@v4
70+
uses: actions/checkout@v4
71+
with:
72+
persist-credentials: false
7873
- name: Setup Node.js
7974
uses: actions/setup-node@v4
8075
with:
81-
cache: npm
76+
cache: npm
8277
node-version: lts/*
8378
- name: Install dependencies
84-
run: npm ci --no-optional
79+
run: npm ci --no-optional
8580
- name: Perform Release
8681
env:
87-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88-
PUBLIC_REPO: ${{ secrets.PUBLIC_REPO }}
82+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
8983
run: npx semantic-release
9084
# TODO(DP):
9185
# - add secrets to github

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
build/*
22
.existdb.json
33
.DS_Store
4-
expath-pkg.xml
54
.vscode/
65
.idea/
76
node_modules/

.releaserc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prepareCmd": "ant -Dapp.version=${nextRelease.version}"
1414
}],
1515
["@semantic-release/git", {
16-
"assets": ["package.json", "package-lock.json"],
16+
"assets": ["expath-pkg.xml", "repo.xml"],
1717
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
1818
}],
1919
["@semantic-release/github", {

0 commit comments

Comments
 (0)