Skip to content

Commit b9a0ce1

Browse files
committed
ci: skip package upload and simplify test workflow for external PRs
1 parent 4260bb1 commit b9a0ce1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838

3939
test:
4040
runs-on: ubuntu-latest
41+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
4142

4243
steps:
4344
- name: ⬇️ Check out code
@@ -52,19 +53,12 @@ jobs:
5253
node-version: 20.x
5354
cache: yarn
5455

55-
- name: 📦 Install deps, build, pack
56+
- name: 📦 Install deps, build
5657
run: |
5758
yarn install --frozen-lockfile
5859
yarn build
59-
yarn pack --out %s-%v.tgz
6060
env:
6161
CI: true
6262

63-
- name: 📤 Upload package artifact
64-
uses: actions/upload-artifact@v4
65-
with:
66-
name: strapi-plugin-imagekit-package
67-
path: strapi-plugin-imagekit-*.tgz
68-
6963
- name: 🧪 Run tests
7064
run: yarn test:unit:ci

0 commit comments

Comments
 (0)