forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wasn't quite able to do it with artifacts so instead build a composit…
…e action
- Loading branch information
1 parent
35d3f36
commit 82a3793
Showing
2 changed files
with
55 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Setup | ||
description: Setup the workspace for the CI | ||
inputs: | ||
outputs: | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "package.json" | ||
|
||
- name: Restore dependencies | ||
id: restore-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: js-depend-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
if: steps.restore-dependencies.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
- name: Build third-party libraries | ||
run: npm run build:libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters