main #3
@@ -6,6 +6,28 @@ jobs:
|
||||
Run-Build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Use Node.js 20.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 20.11.0
|
||||
- name: Yarn cache
|
||||
uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: |
|
||||
${{ steps.yarn-cache-dir.outputs.dir }}
|
||||
node_modules
|
||||
*/node_modules
|
||||
*/*/node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Build
|
||||
uses: actions/checkout@v3
|
||||
run: |
|
||||
yarn
|
||||
yarn build
|
||||
|
||||
Reference in New Issue
Block a user