Merge pull request #1 from imagekit-developer/dev #27
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
| name: Node CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| pack: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Check out code | |
| uses: actions/checkout@v4 | |
| - name: 🟢 Enable Corepack | |
| run: corepack enable | |
| - name: 🟢 Set up Node 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: yarn | |
| - name: 📦 Install deps, build, pack | |
| run: | | |
| yarn install --frozen-lockfile | |
| yarn build | |
| yarn pack --out %s-%v.tgz | |
| env: | |
| CI: true | |
| - name: 📤 Upload package artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: strapi-plugin-imagekit-package | |
| path: strapi-plugin-imagekit-*.tgz |