Skip to content

Commit

Permalink
Merge branch 'master' into invalid_link
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvishnusankar committed Aug 9, 2023
2 parents c14a470 + 7f8a9a8 commit 37da19d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
26 changes: 8 additions & 18 deletions azure-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: 4.1$(rev:.r)
name: 4.2$(rev:.r)
trigger:
branches:
include:
- master

pool:
vmImage: 'ubuntu-latest'
demands: npm
Expand All @@ -17,7 +16,7 @@ steps:

# Set yarn version
- task: Bash@3
displayName: 'Install'
displayName: 'Set yarn version'
inputs:
targetType: 'inline'
script: 'yarn set version stable'
Expand All @@ -44,28 +43,19 @@ steps:
targetType: 'inline'
script: 'yarn install --immutable --immutable-cache'

# Build
- task: Bash@3
displayName: 'Build'
inputs:
targetType: 'inline'
script: 'yarn build'
# failOnStderr: true

# Lint
# Test
- task: Bash@3
displayName: 'Lint'
displayName: 'Test'
inputs:
targetType: 'inline'
script: 'yarn lint'
failOnStderr: true
script: 'yarn test --ci'

# Test
# Build
- task: Bash@3
displayName: 'Test'
displayName: 'Build'
inputs:
targetType: 'inline'
script: 'yarn test --ci'
script: 'yarn workspace next-sitemap build && yarn workspace next-sitemap postbuild'

# Copy README
- task: Bash@3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"clean": "tsc --build --clean",
"dev:test": "jest --watchAll",
"dev:tsc": "tsc --build --watch",
"build": "turbo run build --force",
"build": "turbo run deploy --force",
"test": "jest --ci --coverage --verbose",
"lint": "eslint . && yarn prettier:check",
"prettier:check": "prettier --check \"**/*.{js,mjs,cjs,jsx,json,ts,tsx,md,mdx,css,html,yml,yaml,scss,less,graphql,graphqls,gql}\"",
Expand Down
13 changes: 13 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"postbuild": {
"dependsOn": ["^postbuild"],
"outputs": [
"dist/**",
".next/**",
"public/robots.txt",
"public/sitemap*.xml"
]
},
"deploy": {
"dependsOn": ["build", "postbuild"],
"outputs": []
},
"lint": {
"outputs": []
},
Expand Down

0 comments on commit 37da19d

Please sign in to comment.