-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: migrate to pnpm * fix: type for mdxSource * fix: add packageManager to fix vercel build * ci: pin pnpm version * docs: changeset
- Loading branch information
Showing
13 changed files
with
7,701 additions
and
21,030 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
"blog": patch | ||
--- | ||
|
||
ci: migrate to pnpm | ||
|
||
## Summary by CodeRabbit | ||
|
||
- **New Features** | ||
|
||
- Introduced a new GitHub Actions workflow for validating source code during pull requests. | ||
- Added a script for TypeScript type checking in the project. | ||
|
||
- **Improvements** | ||
|
||
- Updated workflows to streamline dependency installation and caching processes. | ||
- Upgraded action versions for improved performance and compatibility. | ||
|
||
- **Bug Fixes** | ||
|
||
- Removed outdated entries from `.gitignore` and `README.md`, allowing for better tracking and clarity. | ||
|
||
- **Chores** | ||
- Enhanced configuration in `package.json` to enforce specific engine requirements for package management. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Install npm packages | ||
description: Installs npm packages and manages its cache | ||
|
||
env: | ||
NODE_VERSION: 22.9.0 | ||
PNPM_VERSION: 9.15.1 | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# https://github.com/pnpm/action-setup?tab=readme-ov-file#use-cache-to-reduce-installation-time | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
run_install: false | ||
|
||
- name: Setup Node.js v${{ env.NODE_VERSION }} with pnpm cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: "pnpm" | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: pnpm install --frozen-lockfile |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Validate | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
env: | ||
NODE_VERSION: 22.9.0 | ||
|
||
jobs: | ||
validate: | ||
name: Validate Source Code | ||
if: | | ||
!((github.actor == 'github-actions[bot]' || contains(github.event.pull_request.title, 'ci: update version & changelog')) && github.head_ref == 'changeset-release/main') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Cache & Install Dependencies | ||
uses: ./.github/actions/install-dependencies | ||
|
||
- name: Print timezone for timezone based tests | ||
run: date | ||
|
||
- name: Lint Source Code | ||
run: pnpm run lint | ||
|
||
- name: Run TypeScript Checks | ||
run: pnpm run typecheck | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
# test: | ||
# name: Run Tests | ||
# if: | | ||
# !((github.actor == 'rzpcibot' || contains(github.event.pull_request.title, 'build(onboarding-sdk): update version')) && github.head_ref == 'changeset-release/master') | ||
# runs-on: self-hosted | ||
# steps: | ||
# - name: Checkout Codebase | ||
# uses: actions/checkout@v4 | ||
# - name: Use Node v${{ env.NODE_VERSION }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ env.NODE_VERSION }} | ||
# - name: Setup Cache & Install Dependencies | ||
# uses: ./.github/actions/install-dependencies | ||
# - name: Run Unit Tests | ||
# run: pnpm test:coverage |
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
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
Oops, something went wrong.