-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
178 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,48 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for npm | ||
- package-ecosystem: "npm" | ||
# Look for `package.json` and `package-lock.json` files in the root directory | ||
# Maintain dependencies for Composer | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
# Check for updates weekly | ||
schedule: | ||
interval: "weekly" | ||
allow: | ||
# Allow direct updates only (for packages named in package.json) | ||
- dependency-type: "direct" | ||
# Allow up to 10 open pull requests for npm dependencies | ||
open-pull-requests-limit: 10 | ||
open-pull-requests-limit: 5 | ||
versioning-strategy: "increase-if-necessary" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: [ "version-update:semver-major" ] | ||
groups: | ||
composer-dependencies: | ||
dependency-type: "production" | ||
composer-dev-dependencies: | ||
dependency-type: "development" | ||
|
||
# Maintain dependencies for Composer | ||
- package-ecosystem: "composer" | ||
# Look for `composer.json` and `composer.lock` files in the root directory | ||
# Maintain dependencies for npm | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
# Check for updates weekly | ||
schedule: | ||
interval: "weekly" | ||
allow: | ||
# Allow direct updates only (for packages named in composer.json) | ||
- dependency-type: "direct" | ||
# Allow up to 10 open pull requests for composer dependencies | ||
open-pull-requests-limit: 10 | ||
open-pull-requests-limit: 5 | ||
versioning-strategy: "increase-if-necessary" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: [ "version-update:semver-major" ] | ||
groups: | ||
npm-dependencies: | ||
dependency-type: "production" | ||
npm-dev-dependencies: | ||
dependency-type: "development" | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
allow: | ||
- dependency-type: "direct" | ||
open-pull-requests-limit: 10 | ||
open-pull-requests-limit: 5 | ||
groups: | ||
all-github-actions: | ||
patterns: | ||
- ".*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Prepare Release 🚀 | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
deploy: | ||
uses: pressbooks/reusable-workflows/.github/workflows/prepare-release.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Npm build ⚙️ | ||
|
||
on: | ||
pull_request: | ||
branches: [dev] | ||
paths: | ||
- "assets/**/*" | ||
|
||
jobs: | ||
update-npm-build: | ||
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' }} | ||
uses: pressbooks/reusable-workflows/.github/workflows/npm-build.yml@main |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run Tests 🧪 | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
branches: | ||
- dev | ||
workflow_dispatch: | ||
|
||
jobs: | ||
theme-tests: | ||
uses: pressbooks/reusable-workflows/.github/workflows/pb-plugin-tests.yml@main | ||
secrets: inherit | ||
with: | ||
requires_pressbooks: false | ||
use_mariadb: false | ||
trigger_bedrock_updates: | ||
needs: plugin-tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger Bedrock Updates | ||
if: github.ref == 'refs/heads/dev' | ||
uses: pressbooks/composer-autoupdate-bedrock@main | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_SNS_ARN_DEV: ${{ secrets.AWS_SNS_ARN_DEV }} | ||
AWS_SNS_ARN_STAGING: ${{ secrets.AWS_SNS_ARN_STAGING }} | ||
INPUT_TRIGGERED_BY: ${{ github.repository }} | ||
REF: ${{ github.ref }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "1.19.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.