Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
ops: support RC versions
Jake Turner41eb30d84d18
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex fe9e5527..35cae4fa 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -7,6 +7,11 @@ on:description: 'Semantic version to label the Docker image under'required: truetype: string+ tag_latest:+ description: 'Also tag this image as :latest? (Keep false for RC and beta releases)'+ required: false+ type: boolean+ default: falsejobs:check_authorization:@@ -41,4 +46,4 @@ jobs:push: truetags: |ghcr.io/crosstalk-solutions/project-nomad:${{ inputs.version }}- ghcr.io/crosstalk-solutions/project-nomad:latest+ ${{ inputs.tag_latest && 'ghcr.io/crosstalk-solutions/project-nomad:latest' || '' }}diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 95b15976..54150a3d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -37,7 +37,10 @@ jobs:GIT_COMMITTER_EMAIL: [email protected]- name: Finalize release notes- if: steps.semver.outputs.new_release_published == 'true'+ # Skip for pre-releases (versions containing a hyphen, e.g. 1.27.0-rc.1)+ if: |+ steps.semver.outputs.new_release_published == 'true' &&+ !contains(steps.semver.outputs.new_release_version, '-')id: finalize-notesenv:GITHUB_REPOSITORY: ${{ github.repository }}@@ -55,7 +58,10 @@ jobs:fi- name: Commit finalized release notes- if: steps.semver.outputs.new_release_published == 'true' && steps.finalize-notes.outputs.has_notes == 'true'+ if: |+ steps.semver.outputs.new_release_published == 'true' &&+ steps.finalize-notes.outputs.has_notes == 'true' &&+ !contains(steps.semver.outputs.new_release_version, '-')run: |git config user.name "cosmistack-bot"git config user.email "[email protected]"@@ -65,7 +71,10 @@ jobs:git push origin main- name: Update GitHub release body- if: steps.semver.outputs.new_release_published == 'true' && steps.finalize-notes.outputs.has_notes == 'true'+ if: |+ steps.semver.outputs.new_release_published == 'true' &&+ steps.finalize-notes.outputs.has_notes == 'true' &&+ !contains(steps.semver.outputs.new_release_version, '-')env:GH_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}run: |diff --git a/.releaserc.json b/.releaserc.jsonindex 097d42d4..742c8c98 100644--- a/.releaserc.json+++ b/.releaserc.json@@ -1,5 +1,8 @@{- "branches": ["main"],+ "branches": [+ "main",+ { "name": "rc", "prerelease": "rc" }+ ],"plugins": ["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",