mirror of
https://github.com/standardnotes/web.git
synced 2024-10-27 16:31:40 +03:00
chore: only compile components on publish if changed
This commit is contained in:
parent
366613cc81
commit
33e094a03f
12
.github/workflows/version-bump.yml
vendored
12
.github/workflows/version-bump.yml
vendored
@ -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 .
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user