chore: only compile components on publish if changed

This commit is contained in:
Mo 2022-06-15 16:44:59 -05:00
parent 366613cc81
commit 33e094a03f
No known key found for this signature in database
GPG Key ID: 034B13B1644297E1
2 changed files with 11 additions and 3 deletions

View File

@ -29,13 +29,21 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Install dependencies
- name: Install Dependencies
run: yarn install
- name: Get Changed Components Files
id: changed-component-files
uses: tj-actions/changed-files@v23
with:
files: packages/components/**
- name: Compile Components
if: steps.changed-component-files.outputs.any_changed == 'true'
run: yarn components:clean && yarn components:compile
working-directory: packages/components
- name: Commit Components
- name: Package and Commit Components
if: steps.changed-component-files.outputs.any_changed == 'true'
run: |
node packages/components/scripts/package.mjs
git add .

View File

@ -3,7 +3,7 @@
"version": "1.2.7-alpha.14",
"license": "AGPL-3.0-or-later",
"private": true,
"author": "Standard Notes.",
"author": "Standard Notes",
"description": "Ruby on Rails web server for hosting the web application",
"engines": {
"node": ">=12.19.0 <17.0.0"