chore: only compile components on publish if changed
This commit is contained in:
12
.github/workflows/version-bump.yml
vendored
12
.github/workflows/version-bump.yml
vendored
@@ -29,13 +29,21 @@ jobs:
|
|||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install Dependencies
|
||||||
run: yarn install
|
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
|
- name: Compile Components
|
||||||
|
if: steps.changed-component-files.outputs.any_changed == 'true'
|
||||||
run: yarn components:clean && yarn components:compile
|
run: yarn components:clean && yarn components:compile
|
||||||
working-directory: packages/components
|
working-directory: packages/components
|
||||||
- name: Commit Components
|
- name: Package and Commit Components
|
||||||
|
if: steps.changed-component-files.outputs.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
node packages/components/scripts/package.mjs
|
node packages/components/scripts/package.mjs
|
||||||
git add .
|
git add .
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"version": "1.2.7-alpha.14",
|
"version": "1.2.7-alpha.14",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Standard Notes.",
|
"author": "Standard Notes",
|
||||||
"description": "Ruby on Rails web server for hosting the web application",
|
"description": "Ruby on Rails web server for hosting the web application",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.19.0 <17.0.0"
|
"node": ">=12.19.0 <17.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user