diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..37b91e1 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,80 @@ +name: Open & Merge PR + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.x" + + - name: Check cache + id: check_cache + uses: actions/cache@v3 + with: + path: .yarn/unplugged + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + + - name: Install dependencies + if: steps.check_cache.outputs.cache-hit == false + run: yarn install --immutable + + lint: + needs: setup + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.x" + + - name: Check cache + uses: actions/cache@v3 + with: + path: .yarn/unplugged + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + + - name: Check lint + run: yarn lint + + - name: Check prettier + run: yarn prettier + + build: + needs: setup + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.x" + + - name: Check cache + uses: actions/cache@v3 + with: + path: .yarn/unplugged + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + + - name: Lerna build + run: yarn lerna run build diff --git a/.github/workflows/ci.yml b/.github/workflows/publish.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/publish.yml diff --git a/packages/ads/TailwindTestComponent/src/TailwindTestComponent.tsx b/packages/ads/TailwindTestComponent/src/TailwindTestComponent.tsx index 097a1f4..4a92eff 100644 --- a/packages/ads/TailwindTestComponent/src/TailwindTestComponent.tsx +++ b/packages/ads/TailwindTestComponent/src/TailwindTestComponent.tsx @@ -1,8 +1,7 @@ interface Props { name?: string; -}; +} export const TailwindTestComponent = ({ name }: Props) => { return
{name}
; }; -