Skip to content

Commit

Permalink
fix(github): shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Jun 24, 2024
1 parent 2a7f1f6 commit 0746628
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 34 deletions.
13 changes: 13 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Install composite action
description: Yarn install

runs:
using: composite

steps:
- name: Install
shell: bash
run: |
source .env
export NODE_OPTIONS
yarn install --inline-builds
2 changes: 2 additions & 0 deletions .github/actions/lint-typecheck/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ runs:

steps:
- name: Lint
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand All @@ -17,6 +18,7 @@ runs:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}

- name: TypeCheck
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ runs:

steps:
- name: List changed workspaces
shell: bash
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed list
- name: Npm Publish
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand Down
1 change: 1 addition & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ runs:

steps:
- name: Release
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand Down
29 changes: 0 additions & 29 deletions .github/actions/setup/action.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ runs:

steps:
- name: Test unit
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand All @@ -17,6 +18,7 @@ runs:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}

- name: Test integration
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ runs:

steps:
- name: List changed workspaces
shell: bash
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed list
- name: Patch version
shell: bash
run: |
source .env
export NODE_OPTIONS
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./.github/actions/setup
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.NODE_VERSION }}

- uses: ./.github/actions/install

- name: Lint and type check
uses: ./.github/actions/lint-typecheck
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./.github/actions/setup
- name: Checkout
uses: actions/checkout@v4
with:
REF: master
ref: master

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.NODE_VERSION }}

- uses: ./.github/actions/install

- name: Publish
uses: ./.github/actions/publish
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./.github/actions/setup
- name: Checkout
uses: actions/checkout@v4
with:
REF: master
ref: master

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.NODE_VERSION }}

- uses: ./.github/actions/install

- name: Version
uses: ./.github/actions/version
Expand Down

0 comments on commit 0746628

Please sign in to comment.