Skip to content

Commit

Permalink
fix: use separate config file
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz committed Feb 14, 2024
1 parent c9ae07a commit 8b42692
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/job-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ jobs:
with:
node-version: 14.x

- name: Create version tag
run: ./gradlew :nyxMark
- name: Publish to github
run: ./gradlew :nyxPublish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Maven
if: ${{ false }}
run: ./.github/workflows/scripts/publish-maven.sh
env:
OSSRH_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}

- name: Publish NPMJS
if: ${{ false }}
run: ./.github/workflows/scripts/publish-npm.sh
env:
NPMJS_TOKEN: ${{ secrets.DHIS2_BOT_NPM_TOKEN }}
63 changes: 63 additions & 0 deletions .nyx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
# starting from the "simple" preset gives us:
# - the Conventional Commits convention
preset: "simple"
changelog:
path: "CHANGELOG.md"
sections:
"Added": "^feat$"
"Fixed": "^fix$"
releaseTypes:
enabled:
- mainline
- maturity
- internal
publicationServices:
- github
items:
mainline:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)$"
gitPush: "true"
gitTag: "true"
matchBranches: "^(master|main)$"
matchEnvironmentVariables:
CI: "^true$" # only match this release type when running on CI servers
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "true"
maturity:
description: "{{#fileContent}}CHANGELOG.md{{/fileContent}}"
collapseVersions: true
collapsedVersionQualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}"
filterTags: "^({{configuration.releasePrefix}})?([0-9]\\d*)\\.([0-9]\\d*)\\.([0-9]\\d*)(-(alpha|beta)(\\.([0-9]\\d*))?)?$"
gitPush: "true"
gitTag: "true"
matchBranches: "^(alpha|beta)$"
matchWorkspaceStatus: "CLEAN" # only match this release type when the repository is clean
publish: "true"
publishPreRelease: "true"
# "internal" overrides the release type with the same name from the preset adding some qualifiers and is the global fallback for all release types
internal:
collapseVersions: true
collapsedVersionQualifier: "internal"
gitPush: "false"
gitTag: "false"
identifiers:
-
qualifier: "{{#sanitizeLower}}{{branch}}{{/sanitizeLower}}"
position: "BUILD"
-
qualifier: "{{#short5}}{{releaseScope.finalCommit}}{{/short5}}"
position: "BUILD"
-
qualifier: "{{#timestampYYYYMMDDHHMMSS}}{{timestamp}}{{/timestampYYYYMMDDHHMMSS}}"
position: "BUILD"
publish: "false"
publishPreRelease: "false"
services:
github:
type: "GITHUB"
options:
AUTHENTICATION_TOKEN: "{{#environmentVariable}}GH_TOKEN{{/environmentVariable}}"
REPOSITORY_NAME: "expression-parser"
REPOSITORY_OWNER: "vgarciabnz"
4 changes: 0 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ plugins {
id("com.mooltiverse.oss.nyx") version "2.5.2"
}

configure<com.mooltiverse.oss.nyx.gradle.NyxExtension> {
preset.set("extended")
}

rootProject.name = "expression-parser"

0 comments on commit 8b42692

Please sign in to comment.