Merge pull request #344 from DonOmalVindula/feat/react/date-picker #226
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build the project on the main branch. | |
| name: 🧱 Builder | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| build: | |
| name: 🚧 Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| pnpm-version: [latest] | |
| steps: | |
| - name: ⬇️ Checkout | |
| id: checkout | |
| uses: actions/checkout@v4 | |
| - name: 🥡 Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm-version }} | |
| run_install: false | |
| - name: 🟢 Setup node | |
| id: setup-node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: 🎈 Get pnpm store directory | |
| id: get-pnpm-cache-dir | |
| run: | | |
| echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
| - name: 🔆 Cache pnpm modules | |
| uses: actions/cache@v3 | |
| id: pnpm-cache | |
| with: | |
| path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: 🧩 Install Dependencies | |
| id: install-dependencies | |
| run: pnpm install | |
| - name: 🏗️ Build Project | |
| id: build | |
| run: pnpm build | |
| - name: ⏳ Lint All Files | |
| id: lint | |
| run: pnpm lint |