Skip to content

Commit a7bbc68

Browse files
committed
ci: add expath-pkg.xml, commit toc only on master
This aligns frus with all other data repositories and allows tuttle, ansible and xst to work together.
1 parent 375442a commit a7bbc68

File tree

5 files changed

+12
-19
lines changed

5 files changed

+12
-19
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
# Commit Toc files
7272
- name: Commit and Push
73-
if: ${{ matrix.java-version == 17 && github.event_name == 'push' && github.ref != 'refs/heads/master' }}
73+
if: ${{ matrix.java-version == 17 && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
7474
uses: actions-x/commit@v6
7575
with:
7676
message: "fix(toc): update [skip ci]"
@@ -170,19 +170,17 @@ jobs:
170170
if: github.ref == 'refs/heads/master'
171171
steps:
172172
- name: Checkout
173-
uses: actions/checkout@v4
173+
uses: actions/checkout@v4
174+
with:
175+
persist-credentials: false
174176
- name: Setup Node.js
175177
uses: actions/setup-node@v4
176178
with:
177-
cache: npm
179+
cache: npm
178180
node-version: lts/*
179181
- name: Install dependencies
180-
run: npm ci --no-optional
182+
run: npm ci --no-optional
181183
- name: Perform Release
182184
env:
183-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
184-
PUBLIC_REPO: ${{ secrets.PUBLIC_REPO }}
185+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
185186
run: npx semantic-release
186-
# TODO(DP):
187-
# - add secrets to github
188-
# - publish to public repo?

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ schema/remove-classDecl.xsl
88
schema/remove-add-classDecl.xsl
99
schema/add-dc-namespace-to-root.xsl
1010
tests/*-result.html
11-
expath-pkg.xml
1211
gitsha.xml
1312
.vscode/
1413
.idea/

.releaserc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"plugins": [
44
["@semantic-release/commit-analyzer", {
55
"preset": "conventionalcommits",
6-
"presetConfig": "./conventionalcommits.config.cjs",
76
"releaseRules": [
87
{ "type": "!(fix|feat|build|chore|ci|docs|style|refactor|perf|test)", "release": "patch" }
98
]
@@ -15,7 +14,7 @@
1514
"prepareCmd": "ant -Dapp.version=${nextRelease.version}"
1615
}],
1716
["@semantic-release/git", {
18-
"assets": ["package.json", "package-lock.json"],
17+
"assets": ["expath-pkg.xml", "repo.xml"],
1918
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
2019
}],
2120
["@semantic-release/github", {

conventionalcommits.config.cjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

expath-pkg.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<package xmlns="http://expath.org/ns/pkg" name="http://history.state.gov/ns/data/frus" abbrev="frus" version="0.0.0-dev" spec="1.0">
3+
<title>FRUS (data)</title>
4+
</package>

0 commit comments

Comments
 (0)