-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: lint and cleanup of touched files * build: add executor to replace version for ui libs this executor finds all package.json in the libs/ui directory and replaces the current version of @spartan-ng with the one defined in UI_VERSION * build: update cli files to reflect new versions and add scripts to make publishing easier * chore: fix linting errors * build: update semantic release config * build: use same VERSION env var for ui and cli * fix: remove confusing comment * fix: add regex only updating spartan specific versions and a unit test to make sure we don't accidentally mess with other packages * fix: remove .DS_Store files and filter helm packages to not add them to package.json * chore: remove unused script * chore: add generator that auto-increments current version of released assets * chore: add scripts for nightly release * chore: add nightly release workflow * fix: add missing dash * chore: try on push for testing * build: auto fix version number in tools * ci: set up automatic release and committing of changed files * ci: give release step write permissions * ci: check out branch correctly so we can commit it back * ci: try to push to right place * chore: reorder package.json * fix: use newVersion to allow for auto increment script to work * chore: update branch name * fix: rename release scripts and interface and add missing generators * chore: release cli & ui 0.0.1-alpha.379 * chore: fix name for trigger * chore: try to push to origin nightly-release * chore: nightly release 2024-12-10 ⚡ * chore: update tools version number * chore: nightly release 2024-12-10 ⚡ * chore: update github flow to work on main and a schedule * fix: add back lost test and start commands to package.json * fix: fix tests and commit message to follow guidelines * feat: adjust version replacement for new single brain package * fix: use correct alpha version 381 * fix: add back storybook command to package.json * fix: typo in @spartan-ng/brain version for pagination helm * fix: remove tests that don't do anything and add formatting of files --------- Co-authored-by: Leonidas <[email protected]>
- Loading branch information
1 parent
74d4016
commit cd6e903
Showing
68 changed files
with
524 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
name: nightly-release | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
check_date: | ||
runs-on: ubuntu-latest | ||
name: Check latest commit | ||
outputs: | ||
should_run: ${{ steps.should_run.outputs.should_run }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: print latest_commit | ||
run: echo ${{ github.sha }} | ||
|
||
- id: should_run | ||
continue-on-error: true | ||
name: check latest commit is less than a day | ||
if: ${{ github.event_name == 'schedule' }} | ||
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false" | ||
|
||
commitlint: | ||
needs: check_date | ||
if: ${{ needs.check_date.outputs.should_run != 'false' }} | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
# Required by wagoid/commitlint-github-action | ||
pull-requests: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Required by wagoid/commitlint-github-action | ||
fetch-depth: 0 | ||
- name: Install Node v22 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
- name: Install pnpm globally | ||
run: npm install -g pnpm | ||
- name: Lint commit messages | ||
uses: wagoid/commitlint-github-action@v5 | ||
with: | ||
failOnWarnings: true | ||
helpURL: https://github.com/goetzrobin/spartan/blob/main/CONTRIBUTING.md#-commit-message-guidelines | ||
|
||
format-and-lint: | ||
needs: check_date | ||
if: ${{ needs.check_date.outputs.should_run != 'false' }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Required by wagoid/commitlint-github-action | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
- name: Install PNPM globally | ||
run: npm install -g pnpm | ||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: lint | ||
run: pnpm run lint | ||
- name: format | ||
run: pnpm nx format:check --base=origin/main | ||
|
||
build: | ||
needs: check_date | ||
if: ${{ needs.check_date.outputs.should_run != 'false' }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Required by wagoid/commitlint-github-action | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
- name: Install PNPM globally | ||
run: npm install -g pnpm | ||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Build | ||
run: pnpm run build | ||
|
||
release: | ||
needs: | ||
- check_date | ||
- build | ||
- format-and-lint | ||
if: ${{ needs.check_date.outputs.should_run != 'false' }} | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Required by wagoid/commitlint-github-action | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
- name: Install PNPM globally | ||
run: npm install -g pnpm | ||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Pre Release | ||
run: pnpm run pre-nightly-release | ||
- name: Get the current date time | ||
id: datetime | ||
run: echo "release_date=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: Leonidas | ||
author_email: [email protected] | ||
message: 'chore: nightly release ${{steps.datetime.outputs.release_date}} ⚡' | ||
- name: Release | ||
run: pnpm run release |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.