Skip to content

Commit

Permalink
update reusuable workflow version to fix prod deployment (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah authored Jan 30, 2025
1 parent 7a4e734 commit 6f0f081
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
build_deploy:
if: ${{ github.repository == 'primer/brand' }}
name: Production
# SHA for security hardening. Points at last verified HEAD of main branch.
uses: primer/.github/.github/workflows/deploy.yml@rezrah/fix-prod-deployment
# SHA for security hardening. Points at 2.1.1 release
uses: primer/.github/.github/workflows/deploy.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca
with:
node_version: 18
install: npm ci --legacy-peer-deps && cd apps/docs && npm ci --legacy-peer-deps && cd ..
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_docs_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
deploy:
if: ${{ github.repository == 'primer/brand' }}
name: Preview
# SHA for security hardening. Points at last verified HEAD of main branch.
uses: primer/.github/.github/workflows/deploy_preview.yml@cd223835608ca5e9401e0ffe6081f6d2fcc912f3
# SHA for security hardening. Points at 2.1.1 release
uses: primer/.github/.github/workflows/deploy_preview.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca
with:
node_version: 18
install: npm ci --legacy-peer-deps && cd apps/docs && npm ci --legacy-peer-deps && cd ..
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_docs_preview_forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
deploy:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name }}
name: Preview
# SHA for security hardening. Points at last verified HEAD of main branch.
uses: primer/.github/.github/workflows/deploy_preview.yml@cd223835608ca5e9401e0ffe6081f6d2fcc912f3
# SHA for security hardening. Points at 2.1.1 release
uses: primer/.github/.github/workflows/deploy_preview.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca
with:
node_version: 18
install: npm ci --legacy-peer-deps && cd apps/docs && npm ci --legacy-peer-deps && cd ..
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ jobs:
release:
if: github.ref_name == 'main'
name: Release
uses: primer/.github/.github/workflows/[email protected]

uses: primer/.github/.github/workflows/release.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca # SHA for security hardening. Points at v2.1.1 release
secrets:
gh_token: ${{ secrets.GPR_AUTH_TOKEN_SHARED }}
npm_token: ${{ secrets.NPM_AUTH_TOKEN_SHARED }}

release-next-minor:
if: github.ref_name == 'next-minor'
name: Next minor
uses: primer/.github/.github/workflows/release.yml@v1.0.0
uses: primer/.github/.github/workflows/release.yml@2a60f4cc62889bd218f3019ce4a090ff89b71cca # SHA for security hardening. Points at v2.1.1 release
with:
title: Release tracking (next minor)
secrets:
Expand Down

0 comments on commit 6f0f081

Please sign in to comment.