Skip to content

Commit

Permalink
chore: don't persist credentials during release
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsan committed Jan 21, 2024
1 parent e084373 commit 76ecfa0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" && git config --global user.name "Test Build"
- run: git config --global protocol.file.allow always
- run: npm run lint
Expand All @@ -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 "[email protected]" && git config --global user.name "Test Build"
- run: git config --global protocol.file.allow always
- run: npm run test-ci-win
Expand All @@ -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 }}
Expand Down

0 comments on commit 76ecfa0

Please sign in to comment.