Skip to content

fix: adjust layout and improve code formatting in DocsPageActions and… #51

fix: adjust layout and improve code formatting in DocsPageActions and…

fix: adjust layout and improve code formatting in DocsPageActions and… #51

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run linter
run: pnpm lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: |
pnpm --filter @fluxmedia/core build
pnpm --filter @fluxmedia/cloudinary build
pnpm --filter @fluxmedia/s3 build
pnpm --filter @fluxmedia/r2 build
pnpm --filter @fluxmedia/react build
pnpm --filter @fluxmedia/plugins build
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build core (required for tests)
run: pnpm --filter @fluxmedia/core build
- name: Run tests
run: pnpm test:run
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
fail_ci_if_error: false
release:
name: Release
runs-on: ubuntu-latest
needs: [lint, build, test]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build all packages
run: |
pnpm --filter @fluxmedia/core build
pnpm --filter @fluxmedia/cloudinary build
pnpm --filter @fluxmedia/s3 build
pnpm --filter @fluxmedia/r2 build
pnpm --filter @fluxmedia/react build
pnpm --filter @fluxmedia/plugins build
- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}