Skip to content

Commit

Permalink
Update pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomTr committed Aug 25, 2024
1 parent aefcf8f commit 38dd2e7
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 48 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/changeset.yml

This file was deleted.

43 changes: 36 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,57 @@ name: Continuous Integration
on:
pull_request:
branches: [main]
types: [labeled, opened, synchronize, reopened]
jobs:
changeset:
build:
name: Build, test & lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node 18
uses: actions/setup-node@v3
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install pnpm 8.6.12
- name: Install pnpm 9.8.0
uses: pnpm/[email protected]
with:
version: 8.6.12
version: 9.8.0

- name: Install pnpm dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1

- name: Build, test & lint
run: pnpm turbo run lint build test --filter=...[${{ github.event.pull_request.base.sha }}...${{ github.sha }}]
changeset:
name: Check for changeset existence
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'chore') }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm 9.8.0
uses: pnpm/[email protected]
with:
version: 9.8.0

- name: Install pnpm dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1

- name: Danger
run: pnpm danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20

- name: Install pnpm 8.6.12
- name: Install pnpm 9.8.0
uses: pnpm/[email protected]
with:
version: 8.6.12
version: 9.8.0

- name: Install pnpm dependencies (with cache)
uses: covbot/pnpm-install-with-cache@v1
Expand Down

0 comments on commit 38dd2e7

Please sign in to comment.