Skip to content

Commit 8f5e0e0

Browse files
S3DFX-CYBERleonsenft
authored andcommitted
build: pin firebase-tools version and disable credential persistence in preview deploy workflow
1 parent 2c141c0 commit 8f5e0e0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/adev-preview-deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ jobs:
3232
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3333
with:
3434
token: '${{secrets.GITHUB_TOKEN}}'
35+
persist-credentials: false
3536

3637
- name: Configure Firebase deploy target
3738
working-directory: ./
3839
run: |
3940
# We can use `npx` as the Firebase deploy actions uses it too.
40-
npx -y firebase-tools@latest target:clear --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs
41-
npx -y firebase-tools@latest target:apply --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs ${{env.PREVIEW_SITE}}
41+
# Use stable version release
42+
npx -y firebase-tools@15.15.0 target:clear --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs
43+
npx -y firebase-tools@15.15.0 target:apply --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs ${{env.PREVIEW_SITE}}
4244
4345
- uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@ba726e7bca0b08b125ccc6f93c233749e1213c17
4446
with:

0 commit comments

Comments
 (0)