diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b7613f..e44908e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49dab22..e018f75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,9 @@ name: Release +permissions: + contents: write + packages: write + on: push: branches: @@ -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 diff --git a/package.json b/package.json index 6d4b8fe..7190072 100644 --- a/package.json +++ b/package.json @@ -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",