From 76ecfa053a1eef89eca39066cec4a64636ac4960 Mon Sep 17 00:00:00 2001 From: Tobias Bocanegra Date: Sun, 21 Jan 2024 16:22:20 +0100 Subject: [PATCH] chore: don't persist credentials during release --- .github/workflows/main.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b4290bbdd..0b753f3aa 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,7 +15,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: '18.x' - - run: npm install + - run: npm ci - run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build" - run: git config --global protocol.file.allow always - run: npm run lint @@ -42,7 +42,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: '18.x' - - run: npm install + - run: npm ci - run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build" - run: git config --global protocol.file.allow always - run: npm run test-ci-win @@ -56,11 +56,13 @@ jobs: needs: [test, test_win] steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Use Node.js 18.x uses: actions/setup-node@v4 with: node-version: '18.x' - - run: npm install + - run: npm ci - run: npm run semantic-release env: GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}