Skip to content

Update submodule and add new file #72

Update submodule and add new file

Update submodule and add new file #72

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'true'
token: ${{secrets.ACCTIONS_AT}}
- name: Set up Git user info
run: |
git config --global user.email "[email protected]"
git config --global user.name "[email protected]"
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.11.1'
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run prettier
run: npm run prettier
# - name: Run danger
# run: npm run danger
- name: Run renderDtype
run: npm run renderDtype
# - name: Update submodule
# run: |
# git stash # Stash any changes
# git submodule update --init --recursive # Update and initialize submodule
# cd typeLib # Move into the submodule directory
# git stash # Stash any changes in the submodule
# git config --global user.email "[email protected]"
# git config --global user.name "[email protected]"
# git checkout main # Switch to the main branch of the submodule
# git pull origin main
# cd ..
# git add typeLib # Add submodule to index
# git commit -m "Update submodule"
# git push origin main # Push changes to the main branch of the submodule
- name: Build
run: npm run build