-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add github push workflow * chore: add type-check and test to push workflow * chore: add workflow for pull requests * chore: update push and pull_request_target actions * chore: add release action * chore: rename actions
- Loading branch information
1 parent
2291f35
commit 6e1c6c4
Showing
19 changed files
with
311 additions
and
121 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,15 @@ | ||
name: '🏗️ ' | ||
author: 'PHILLIPS71' | ||
|
||
inputs: | ||
COMMAND: | ||
default: 'build' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🏗️ Build' | ||
shell: bash | ||
run: | | ||
pnpm run ${{ inputs.COMMAND }} |
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,15 @@ | ||
name: '🔺️ ' | ||
author: 'PHILLIPS71' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🔺️ Cache (turbo)' | ||
uses: actions/cache@v4 | ||
with: | ||
path: .cache-turbo | ||
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} | ||
restore-keys: | | ||
turbo-${{ github.job }}-${{ github.ref_name }}- | ||
turbo-${{ github.job }}- | ||
turbo- |
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,27 @@ | ||
name: '💽️ ' | ||
author: 'PHILLIPS71' | ||
|
||
inputs: | ||
node-version: | ||
default: '20' | ||
description: '🔢 Node version' | ||
required: true | ||
pnpm-version: | ||
default: '8' | ||
description: '🔢 pnpm version' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🔧 pnpm' | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
|
||
- name: '💽️ Node ${{ inputs.node-version }}' | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache-dependency-path: pnpm-lock.yaml | ||
cache: 'pnpm' | ||
node-version: ${{ inputs.node-version }} |
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,10 @@ | ||
name: '📦️ ' | ||
author: 'PHILLIPS71' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '📦️ Dependencies' | ||
shell: bash | ||
run: | | ||
pnpm install --frozen-lockfile |
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,10 @@ | ||
name: '🚨️ ' | ||
author: 'PHILLIPS71' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🚨️ Lint' | ||
shell: bash | ||
run: | | ||
pnpm run lint |
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,52 @@ | ||
name: '🏷️ ' | ||
author: 'PHILLIPS71' | ||
|
||
inputs: | ||
RELEASE_TYPE: | ||
required: true | ||
RELEASE_IDENTIFIER: | ||
required: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🏷️ Release' | ||
id: version | ||
uses: giantnodes/semver@latest | ||
with: | ||
path: VERSION.txt | ||
type: ${{ inputs.RELEASE_TYPE }} | ||
identifier: ${{ inputs.RELEASE_IDENTIFIER }} | ||
|
||
- name: '🏷️ Version @giantnodes/design-system' | ||
shell: bash | ||
run: | | ||
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version | ||
- name: '🏷️ Version @giantnodes/theme' | ||
working-directory: packages/theme | ||
shell: bash | ||
run: | | ||
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version | ||
- name: '🏷️ Version @giantnodes/react' | ||
working-directory: packages/react | ||
shell: bash | ||
run: | | ||
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version | ||
- name: '🏷️ Tag & Commit Release' | ||
shell: bash | ||
run: | | ||
git checkout -b release/${{ steps.version.outputs.version }} | ||
git commit -m 'chore(release): ${{ steps.version.outputs.version }}' | ||
git tag ${{ steps.version.outputs.version }} | ||
git push origin release/${{ steps.version.outputs.version }} --tags --force | ||
- name: '🏷️ Open Pull Request' | ||
uses: thomaseizinger/create-pull-request@master | ||
with: | ||
title: 'chore(release): ${{ steps.version.outputs.version }}' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
head: release/${{ steps.version.outputs.version }} | ||
base: main |
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,15 @@ | ||
name: '🧪 ' | ||
author: 'PHILLIPS71' | ||
|
||
inputs: | ||
COMMAND: | ||
default: 'test' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🧪 Test' | ||
shell: bash | ||
run: | | ||
pnpm run ${{ inputs.COMMAND }} |
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,15 @@ | ||
name: '🦺 ' | ||
author: 'PHILLIPS71' | ||
|
||
inputs: | ||
COMMAND: | ||
default: 'type-check' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: '🦺 Type Check' | ||
shell: bash | ||
run: | | ||
pnpm run ${{ inputs.COMMAND }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: '🔀 Pull Request' | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: pull-request-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pull: | ||
name: '👷️ CI' | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: '🐙️ Checkout' | ||
uses: actions/checkout@v4 | ||
|
||
- name: '💽️ Init' | ||
uses: ./.github/actions/init | ||
|
||
- name: '📦 Install' | ||
uses: ./.github/actions/install | ||
|
||
- name: '🔺️ Cache (turbo)' | ||
uses: ./.github/actions/cache | ||
|
||
- name: '🏗️ Build' | ||
uses: ./.github/actions/build | ||
with: | ||
COMMAND: 'build' | ||
|
||
- name: '🚨️ Lint' | ||
uses: ./.github/actions/lint | ||
|
||
- name: '🦺 Type Check' | ||
uses: ./.github/actions/type-check | ||
with: | ||
COMMAND: 'type-check' | ||
|
||
- name: '🧪 Test' | ||
uses: ./.github/actions/test | ||
with: | ||
COMMAND: 'test' |
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,51 @@ | ||
name: '▶️ Push' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- chore/** | ||
- feat/** | ||
- fix/** | ||
|
||
concurrency: | ||
group: push-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
push: | ||
name: '👷️ CI' | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: '🐙️ Checkout' | ||
uses: actions/checkout@v4 | ||
|
||
- name: '💽️ Init' | ||
uses: ./.github/actions/init | ||
|
||
- name: '📦 Install' | ||
uses: ./.github/actions/install | ||
|
||
- name: '🔺️ Cache (turbo)' | ||
uses: ./.github/actions/cache | ||
|
||
- name: '🏗️ Build' | ||
uses: ./.github/actions/build | ||
with: | ||
COMMAND: 'build' | ||
|
||
- name: '🚨️ Lint' | ||
uses: ./.github/actions/lint | ||
|
||
- name: '🦺 Type Check' | ||
uses: ./.github/actions/type-check | ||
with: | ||
COMMAND: 'type-check' | ||
|
||
- name: '🧪 Test' | ||
uses: ./.github/actions/test | ||
with: | ||
COMMAND: 'test' |
Oops, something went wrong.