test: update typeList by CICD #79
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
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.GITHUB_TOKEN}} | |
- 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 | |
env: | |
MY_SECRET: ${{ secrets.GITHUB_TOKEN}} | |
# - 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 |