Skip to content

update repo url in package.json #2

update repo url in package.json

update repo url in package.json #2

Workflow file for this run

name: Build & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test
# Assuming your build script updates the lib folder
# - name: Commit and push lib folder to a dedicated branch
# run: |
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git checkout -b dist
# git add lib -f
# git commit -m "Update lib folder"
# git push origin dist --force
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN_DIST_BRANCH }}