From f7689539c8cc1e2db65611857d859682bbf104e4 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 19 Jun 2021 23:04:14 +0200 Subject: [PATCH] ci: adapt ci scripts --- .github/workflows/ci.yaml | 3 +-- .github/workflows/release.yml | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f88814cca..33d771063 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: "12.x" + - run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/ - run: npm ci - run: npm test -- --coverage - run: bash <(curl -s https://codecov.io/bash) @@ -38,8 +39,6 @@ jobs: steps: - name: Check out Git repository uses: actions/checkout@v1 - with: - persist-credentials: false - name: Install Node.js, NPM and Yarn uses: actions/setup-node@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f885ebf8..4195e3c1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,11 +13,13 @@ jobs: steps: - uses: actions/checkout@v2 + with: + persist-credentials: false - name: Use Node.js uses: actions/setup-node@v1 with: node-version: "12.x" - persist-credentials: false + - run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/ - run: npm install - run: npm test -- --coverage - run: bash <(curl -s https://codecov.io/bash)