Skip to content

make main as default branch #6

make main as default branch

make main as default branch #6

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