From 72a5b75f68338f53106469af899b2c1fb7f71459 Mon Sep 17 00:00:00 2001 From: kdn0325 Date: Wed, 3 Sep 2025 02:09:38 +0900 Subject: [PATCH 1/4] ci: update comments for clarity in release workflow --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49dab22..77334a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,14 +21,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 From 3affaf786adf1ed9eec8f5ea4920124b8dcea106 Mon Sep 17 00:00:00 2001 From: kdn0325 Date: Wed, 3 Sep 2025 02:12:00 +0900 Subject: [PATCH 2/4] ci: update CI workflow to use Yarn 3.6.4 instead of npm --- .github/workflows/ci.yml | 90 +++++++++++++++++++++++++++++----------- 1 file changed, 65 insertions(+), 25 deletions(-) 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 From e6bc13857b40166bb9015f80202d058defe3f146 Mon Sep 17 00:00:00 2001 From: kdn0325 Date: Wed, 3 Sep 2025 02:13:02 +0900 Subject: [PATCH 3/4] ci: add permissions for contents and packages in release workflow --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77334a6..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: From 48dc6c06a6d88217317baef8f12a18ee48f7bb2f Mon Sep 17 00:00:00 2001 From: kdn0325 Date: Wed, 3 Sep 2025 02:13:22 +0900 Subject: [PATCH 4/4] chore: update version to 1.3.0 in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",