-
Notifications
You must be signed in to change notification settings - Fork 134
46 lines (40 loc) · 1.23 KB
/
copilot-setup-steps.yml
File metadata and controls
46 lines (40 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Copilot Setup Steps
env:
NODE_VERSION: 22.x
VITE_VALIDATOR: vl.ripple.com
VITE_RIPPLED_WS_PORT: 51233
VITE_RIPPLED_HOST: fake.rippled.example.com
VITE_MAINNET_LINK: mainnet.example.com
VITE_TESTNET_LINK: testnet.example.com
VITE_CUSTOMNETWORK_LINK: custom.example.com
VITE_DATA_URL: https://data.xrpl.org/v1/network
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
copilot-setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# caching node_modules
path: node_modules
key: ${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-
${{ env.NODE_VERSION }}-build-
- name: Install Dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: npm ci