Skip to content

Commit 9b00545

Browse files
committed
ci: add GitHub Actions workflows for NPM publishing and CI builds
1 parent c32c332 commit 9b00545

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
pack:
9+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: ⬇️ Check out code
14+
uses: actions/checkout@v4
15+
16+
- name: 🟢 Enable Corepack
17+
run: corepack enable
18+
19+
- name: 🟢 Set up Node 20
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
cache: yarn
24+
25+
- name: 📦 Install deps, build, pack
26+
run: |
27+
yarn install --frozen-lockfile
28+
yarn build
29+
yarn pack --out %s-%v.tgz
30+
env:
31+
CI: true
32+
33+
- name: 📤 Upload package artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: strapi-plugin-imagekit-package
37+
path: strapi-plugin-imagekit-*.tgz

0 commit comments

Comments
 (0)