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
90 changes: 65 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,73 +12,113 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version: 20

# Activate Corepack for Yarn Berry
- name: Setup Corepack
run: |
# Enable Corepack with sudo
sudo corepack enable
# Prepare package manager
sudo corepack prepare yarn@3.6.4 --activate
# Verify installation
which yarn
yarn --version

- name: Install dependencies
run: npm ci
run: yarn install

- name: Lint files
run: npm run lint
run: yarn lint

- name: Typecheck files
run: npm run typecheck
run: yarn typecheck

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version: 20

# Activate Corepack for Yarn Berry
- name: Setup Corepack
run: |
# Enable Corepack with sudo
sudo corepack enable
# Prepare package manager
sudo corepack prepare yarn@3.6.4 --activate
# Verify installation
which yarn
yarn --version

- name: Install dependencies
run: npm ci
run: yarn install

- name: Run unit tests
run: npm test -- --maxWorkers=2 --coverage
run: yarn test -- --maxWorkers=2 --coverage

build-library:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version: 20

# Activate Corepack for Yarn Berry
- name: Setup Corepack
run: |
# Enable Corepack with sudo
sudo corepack enable
# Prepare package manager
sudo corepack prepare yarn@3.6.4 --activate
# Verify installation
which yarn
yarn --version

- name: Install dependencies
run: npm ci
run: yarn install

- name: Build package
run: npm run prepare
run: yarn prepare

build-web:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version: 20

# Activate Corepack for Yarn Berry
- name: Setup Corepack
run: |
# Enable Corepack with sudo
sudo corepack enable
# Prepare package manager
sudo corepack prepare yarn@3.6.4 --activate
# Verify installation
which yarn
yarn --version

- name: Install dependencies
run: npm ci
run: yarn install

- name: Build example for Web
run: npm run example expo export:web
run: yarn example expo export:web
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Release

permissions:
contents: write
packages: write

on:
push:
branches:
Expand All @@ -21,14 +25,14 @@ jobs:
with:
node-version: 20

# 코어팩 활성화 및 설정
# Activate Corepack for Yarn Berry
- name: Setup Corepack
run: |
# 코어팩 활성화 (sudo 사용)
# Enable Corepack with sudo
sudo corepack enable
# 패키지 매니저 준비
# Prepare package manager
sudo corepack prepare yarn@3.6.4 --activate
# 확인
# Verify installation
which yarn
yarn --version

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kdn0325/react-native-outlined-text",
"version": "1.1.2",
"version": "1.3.0",
"description": "Want to use text stroke or text outline in React Native? This library is easy to create",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
Expand Down
Loading