Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Yarn Install Action in Workflows #240

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Enable Yarn
run: corepack enable yarn

- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: corepack yarn install
uses: threeal/yarn-install-action@v1.0.0

- name: Create Package
run: corepack yarn pack
Expand All @@ -39,17 +30,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Enable Yarn
run: corepack enable yarn

- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: corepack yarn install
uses: threeal/yarn-install-action@v1.0.0

- name: Generate Documentation
run: corepack yarn doc
11 changes: 1 addition & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Enable Yarn
run: corepack enable yarn

- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: corepack yarn install
uses: threeal/yarn-install-action@v1.0.0

- name: Generate Documentation
run: corepack yarn doc
Expand Down
24 changes: 3 additions & 21 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1

- name: Enable Yarn
run: corepack enable yarn
- name: Install Dependencies
uses: threeal/yarn-install-action@v1.0.0

- name: Check Yarn Version
run: corepack yarn set version stable && git diff --exit-code HEAD

- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: corepack yarn install

- name: Check Format
run: corepack yarn format && git diff --exit-code HEAD

Expand All @@ -45,17 +36,8 @@ jobs:
with:
node-version: latest

- name: Enable Yarn
run: corepack enable yarn

- name: Cache Dependencies
uses: actions/cache@v3.3.2
with:
path: .yarn
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install Dependencies
run: corepack yarn install
uses: threeal/yarn-install-action@v1.0.0

- name: Test Package
run: corepack yarn test
Expand Down
Loading