Skip to content

Commit

Permalink
Update node to v20 and add version instead of main to workflow (#2609)
Browse files Browse the repository at this point in the history
* update node to v20 and add version instead of main to workflow

* Update deploy_preview.yml

* Update deploy_production.yml
  • Loading branch information
lukasoppermann committed Apr 12, 2024
1 parent a03827b commit d29d8a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ permissions:
jobs:
deploy:
if: ${{ github.repository == 'primer/css' }}
uses: primer/.github/.github/workflows/deploy_preview.yml@main
uses: primer/.github/.github/workflows/deploy_preview.yml@v1.0.0
name: Deploy preview
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
node_version: 18
node_version: 20
install: npm ci && cd docs && npm ci && cd ..
build: npm run build:docs:preview
output_dir: docs/public
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
if: ${{ github.repository == 'primer/css' }}
name: Production
needs: [guard]
uses: primer/.github/.github/workflows/deploy.yml@main
uses: primer/.github/.github/workflows/deploy.yml@v1.0.0
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
node_version: 18
node_version: 20
install: npm ci && cd docs && npm ci && cd ..
build: npm run build:docs
output_dir: docs/public

0 comments on commit d29d8a7

Please sign in to comment.