-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
* chore(deps): update dependabot issue
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
import { ProjenStruct, Struct } from '@mrgrain/jsii-struct-builder'; | ||
import { JsonPatch, awscdk } from 'projen'; | ||
import { DependabotScheduleInterval, VersioningStrategy } from 'projen/lib/github'; | ||
import { JobPermission } from 'projen/lib/github/workflows-model'; | ||
import { NpmAccess } from 'projen/lib/javascript'; | ||
import { buildUpgradeMainPRCustomJob } from './projenrc/github-jobs'; | ||
import { | ||
|
@@ -111,9 +110,6 @@ const project = new awscdk.AwsCdkConstructLibrary({ | |
'!.ort.yml', | ||
'.idea', | ||
'.vscode', | ||
'website/build', | ||
'website/node_modules', | ||
'website/.docusaurus', | ||
], | ||
stability: 'experimental', | ||
sampleCode: false, | ||
|
@@ -161,71 +157,6 @@ project.github?.actions.set('peter-evans/create-issue-from-file@v4', 'peter-evan | |
project.github?.actions.set('peter-evans/create-pull-request@v4', 'peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54'); | ||
project.github?.actions.set('peter-evans/create-pull-request@v5', 'peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38'); | ||
project.github?.actions.set('aws-actions/[email protected]', 'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502'); | ||
// docusaurus add specific overrides | ||
|
||
project.github?.actions.set('peaceiris/actions-gh-pages@v3', 'peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847'); | ||
project; | ||
const deployDocsWorkflow = project.github?.addWorkflow('DeployDocs'); | ||
if (deployDocsWorkflow) { | ||
deployDocsWorkflow.on({ | ||
push: { | ||
branches: ['main'], | ||
}, | ||
}); | ||
|
||
project.github?.actions.set('peaceiris/actions-gh-pages@v3', 'peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847'); | ||
|
||
deployDocsWorkflow.addJobs({ | ||
deploy: { | ||
permissions: { | ||
contents: JobPermission.WRITE, | ||
}, | ||
runsOn: ['ubuntu-latest'], | ||
steps: [ | ||
{ uses: 'actions/checkout@v4' }, | ||
{ | ||
uses: 'actions/setup-node@v4', | ||
with: { 'node-version': '18' }, | ||
}, | ||
{ run: 'cd website; yarn install --frozen-lockfile;' }, | ||
{ | ||
uses: 'peaceiris/actions-gh-pages@v3', | ||
with: { | ||
github_token: '${{ secrets.GITHUB_TOKEN }}', | ||
publish_dir: './website/build', | ||
user_name: 'github-actions[bot]', | ||
user_email: '41898282+github-actions[bot]@users.noreply.github.com', | ||
}, | ||
}, | ||
], | ||
}, | ||
}); | ||
} | ||
|
||
const testDeploymentWorkflow = project.github?.addWorkflow('TestDeployment'); | ||
|
||
if (testDeploymentWorkflow) { | ||
testDeploymentWorkflow.on({ | ||
pullRequest: { | ||
branches: ['main'], | ||
}, | ||
}); | ||
|
||
testDeploymentWorkflow.addJobs({ | ||
test_deploy: { | ||
permissions: { | ||
contents: JobPermission.WRITE, | ||
}, | ||
runsOn: ['ubuntu-latest'], | ||
steps: [ | ||
{ uses: 'actions/checkout@v4', with: { 'fetch-depth': '0' } }, | ||
{ uses: 'actions/setup-node@v4', with: { 'node-version': '18', 'cache': 'yarn' } }, | ||
{ run: 'cd website; yarn install --frozen-lockfile' }, | ||
{ run: 'cd website; pwd; npx docusaurus build', name: 'Test build website' }, | ||
], | ||
}, | ||
}); | ||
} | ||
|
||
// We don't want to package certain things | ||
project.npmignore?.addPatterns( | ||
|
@@ -245,7 +176,6 @@ project.npmignore?.addPatterns( | |
'tsconfig.dev.json', | ||
'yarn.lock', | ||
'/apidocs/', | ||
'website/', | ||
); | ||
|
||
// Add License header automatically | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.