This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Migrate to pnpm and changesets #864
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
name: Validate | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- master | |
workflow_run: | |
branches: | |
- master | |
types: | |
- completed | |
workflows: | |
- Release | |
permissions: {} | |
jobs: | |
core: | |
name: Lint & Test | |
permissions: | |
checks: write | |
runs-on: ubuntu-latest | |
steps: | |
- if: >- | |
github.actor != 'dependabot[bot]' && ( | |
github.event_name != 'pull_request' || | |
github.event.pull_request.head.repo.full_name == github.repository | |
) | |
name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN || github.token }} | |
- if: >- | |
github.actor == 'dependabot[bot]' || ( | |
github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name != github.repository | |
) | |
name: Check out repo | |
uses: actions/checkout@v4 | |
# We don't share secrets with Dependabot nor forks. | |
- name: Set Git user | |
run: | | |
git config user.name seek-oss-ci | |
git config user.email [email protected] | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Set up pnpm | |
run: corepack enable pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint | |
run: pnpm lint | |
- if: github.event_name == 'push' | |
name: Dry-run changelog versioning | |
run: pnpm changeset version |