Skip to content

Commit

Permalink
fix: dependabot and ci updates (#79)
Browse files Browse the repository at this point in the history
* fix: dependabot and ci updates

* chore: cleanup

* Update ensure-npm-build.yml

* Update create-release.yml
  • Loading branch information
arzola authored Jun 3, 2024
1 parent 8638a1e commit 6c39035
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 15 deletions.
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:
- ".*"
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 }}
INPUT_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 @@
{
".": "1.3.0"
}
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-jacobs](https://github.com/pressbooks/pressbooks-jacobs) as the Theme URI, then click "Install Theme". Tagged updates to this theme will then be available as normal WordPress updates.

## Changelog

### 1.2.1

* See: https://github.com/pressbooks/pressbooks-jacobs/releases/tag/1.2.1
* Full release history available at: https://github.com/pressbooks/pressbooks-jacobs/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, Literary, Nonfiction, Textbook
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.com
Copyright: 2017–2023 Pressbooks (Book Oven Inc. <code@pressbooks.com>
x-release-please-start-version
Version: 1.3.0
x-release-please-end
License: GPL v3 or later
Template: pressbooks-book
GitHub Theme URI: pressbooks/pressbooks-jacobs
Expand Down

0 comments on commit 6c39035

Please sign in to comment.