From ee87e8ad4a3c258705147d50cb736f9e8a6c99f7 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 1 Nov 2022 17:32:38 +0200 Subject: package.json: add a clone-repo script (#177) --- .github/workflows/test.yml | 4 +--- package.json | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eca1e0c..818b794 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,9 +25,7 @@ jobs: uses: actions/checkout@v3 - name: Clone twbs/bootstrap repo - run: | - git clone https://github.com/twbs/bootstrap.git -b main --depth 1 bootstrap - git clone https://github.com/twbs/bootstrap.git -b v4-dev --depth 1 bootstrap-4 + run: npm run clone-repo - name: Set up Node.js uses: actions/setup-node@v3 diff --git a/package.json b/package.json index 535e9fd..0e4a665 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ }, "scripts": { "lint": "eslint --ignore-path .gitignore .", + "clone-repo": "git clone https://github.com/twbs/bootstrap.git --branch main --depth 1 bootstrap && git clone https://github.com/twbs/bootstrap.git --branch v4-dev --depth 1 bootstrap-4", "test": "npm run lint", "test-ci": "stylelint \"(bootstrap|bootstrap-4)/scss/**/*.scss\" --config index.js --ignore-pattern \"**/vendor/\" --formatter verbose" } -- cgit v1.2.3