0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-04 13:50:13 -05:00

feat: add build to CI

This commit is contained in:
Juanfran 2024-09-06 14:29:03 +02:00
parent ccc5f78777
commit a4342094ce
2 changed files with 37 additions and 14 deletions

19
.github/actions/prepare/action.yml vendored Normal file
View file

@ -0,0 +1,19 @@
description: Prepares the repo for a CI job
name: Prepare
runs:
steps:
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
shell: bash
using: composite

View file

@ -17,20 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- name: Lint
id: npm-lint
@ -39,3 +27,19 @@ jobs:
- name: Test
id: npm-test
run: npm run test
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- name: Build runtime
run: npm run build
- name: Build plugins
run: npm run build:plugins
- name: Build styles
run: npm run build:styles-example