Skip to content
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
16 changes: 10 additions & 6 deletions .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,36 @@ permissions:
env:
HYPHEN_PUBLIC_API_KEY: ${{ secrets.HYPHEN_PUBLIC_API_KEY }}
HYPHEN_APPLICATION_ID: ${{ secrets.HYPHEN_APPLICATION_ID }}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
Comment thread
jaredwray marked this conversation as resolved.

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'

- name: Install Dependencies
run: npm install pnpm@10 -g && pnpm install
run: pnpm install

- name: Build
- name: Build
run: pnpm build

- name: Testing
- name: Testing
run: pnpm test:ci

- name: Code Coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Hyphen/react-sdk
files: ./coverage/lcov.info

12 changes: 8 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,23 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
Comment thread
jaredwray marked this conversation as resolved.

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'pnpm'

- name: Install Dependencies
run: npm install pnpm@10 -g && pnpm install
run: pnpm install

- name: Build
- name: Build
run: pnpm build

- name: Testing
- name: Testing
run: pnpm test:ci

- name: Set NPM Auth Token
Expand All @@ -41,4 +46,3 @@ jobs:
- name: Publish
run: |
pnpm publish --no-git-checks --ignore-scripts --access public

12 changes: 8 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,26 @@ jobs:

strategy:
matrix:
node-version: ['20', '22', '24']
node-version: ['22', '24', '26']

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
Comment thread
jaredwray marked this conversation as resolved.

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install Dependencies
run: npm install pnpm@10 -g && pnpm install
run: pnpm install

- name: Build
if: matrix.node-version != '20'
run: pnpm build

- name: Testing
- name: Testing
run: pnpm test:ci

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hyphen/react-sdk",
"version": "1.2.0",
"version": "2.0.0",
"description": "Hyphen SDK for React",
"type": "module",
"main": "dist/index.mjs",
Expand Down Expand Up @@ -36,11 +36,15 @@
],
"author": "Team Hyphen <hello@hyphen.ai>",
"license": "MIT",
"engines": {
"node": ">=22.12.0"
},
"packageManager": "pnpm@11.0.9",
Comment thread
jaredwray marked this conversation as resolved.
"devDependencies": {
"@biomejs/biome": "^2.4.14",
"@faker-js/faker": "^10.4.0",
"@testing-library/react": "^16.3.2",
"@types/node": "^25.6.0",
"@types/node": "^24.12.3",
"@types/react": "^19.2.14",
"@vitest/coverage-v8": "^4.1.5",
"dotenv": "^17.4.2",
Expand Down
Loading
Loading