Skip to content

Commit

Permalink
do not persist credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
m-seidel committed Jun 5, 2024
1 parent dcdd16e commit 3b8d0d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# persisting credentials breaks installing dependencies from private repos
persist-credentials: false
# fetch all history for all branches and tags
fetch-depth: 0

- name: Use Node JS
uses: actions/setup-node@v4
Expand All @@ -31,7 +36,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com/'
scope: '@staffbase'

- run: echo "@staffbase:registry=https://npm.pkg.github.com" >> samples/weather-forecast/.npmrc
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.STAFFBOT_NPM_READ }}" >> samples/weather-forecast/.npmrc

- name: Yarn install
Expand Down

0 comments on commit 3b8d0d1

Please sign in to comment.