Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dependabot and ci updates #74

Merged
merged 8 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,47 @@ version: 2
updates:
# Maintain dependencies for Composer
- package-ecosystem: "composer"
# Look for `composer.json` and `composer.lock` files in the root directory
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:
composer-dependencies:
dependency-type: "production"
composer-dev-dependencies:
dependency-type: "development"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
allow:
- dependency-type: "direct"
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"
open-pull-requests-limit: 5
groups:
all-github-actions:
patterns:
- ".*"
1 change: 0 additions & 1 deletion .github/move.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Run Composer Autoupdate
name: Update Bedrocks 🔧

on:
push:
branches: [ dev, production ]
branches: [ dev ]

jobs:
trigger_bedrock_updates:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/production'
runs-on: ubuntu-latest
steps:
- name: Trigger Bedrock Updates
Expand All @@ -17,4 +16,4 @@ jobs:
AWS_SNS_ARN_DEV: ${{ secrets.AWS_SNS_ARN_DEV }}
AWS_SNS_ARN_STAGING: ${{ secrets.AWS_SNS_ARN_STAGING }}
INPUT_TRIGGERED_BY: ${{ github.repository }}
BRANCH: ${{ github.ref }}
REF: ${{ github.ref }}
11 changes: 11 additions & 0 deletions .github/workflows/create-release.yml
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
12 changes: 12 additions & 0 deletions .github/workflows/ensure-npm-build.yml
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
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.4.0"
}
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Named after Arthur C. Clarke, this is a simple book theme, with some light moder

## Requirements

* PHP >= 7.1
* PHP >= 8.1
* WordPress >= 5.2.4
* Pressbooks >= 5.10.0
* McLuhan >= 2.8.13
Expand All @@ -31,9 +31,5 @@ Install the [GitHub Updater plugin](https://github.com/afragen/github-updater).

Then, from the GitHub Updater interface, navigate to the "Install Theme" tab. Enter [https://github.com/pressbooks/pressbooks-clarke](https://github.com/pressbooks/pressbooks-clarke) as the Theme URI, then click "Install Theme". Tagged updates to this theme will then be available as normal WordPress updates.

## Changelog

### 2.3.3

* See: https://github.com/pressbooks/pressbooks-clarke/releases/tag/2.3.3
* Full release history available at: https://github.com/pressbooks/pressbooks-clarke/releases
### Changelog
Please see the [CHANGELOG](CHANGELOG.md) file for more information.
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "simple",
"include-component-in-tag": false,
"include-v-in-tag": false,
"packages": {
".": {
"extra-files": [
"style.css"
]
}
}
}
2 changes: 2 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Tags: Academic, Nonfiction, Textbook
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.com
Copyright: 2011-2022 Pressbooks (Book Oven Inc. <code@pressbooks.com>
x-release-please-start-version
Version: 2.4.0
x-release-please-end
License: GPL v3 or later
Template: pressbooks-book
GitHub Theme URI: pressbooks/pressbooks-clarke
Expand Down