Skip to content

Commit

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

* Update ensure-npm-build.yml
  • Loading branch information
arzola committed May 30, 2024
1 parent 3cd52f5 commit df03b6a
Show file tree
Hide file tree
Showing 11 changed files with 130 additions and 174 deletions.
49 changes: 35 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,27 +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"
open-pull-requests-limit: 5
groups:
all-github-actions:
patterns:
- ".*"
34 changes: 0 additions & 34 deletions .github/workflows/build-and-lint.yml

This file was deleted.

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
104 changes: 0 additions & 104 deletions .github/workflows/standards-and-tests.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Tests 🧪

on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:

jobs:
plugin-tests:
uses: pressbooks/reusable-workflows/.github/workflows/pb-plugin-tests.yml@main
secrets: inherit
with:
requires_pressbooks: true
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 }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.8.0"
}
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
**Tags:** publishing, SWORD, libraries, repositories \
**Requires at least:** 6.5 \
**Tested up to:** 6.5 \
<!-- x-release-please-start-version -->
**Stable tag:** 0.8.0 \
<!-- x-release-please-end -->
**License:** GPLv3 or later, New BSD License \
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -52,9 +54,5 @@ Or, download the latest version from the releases page and unzip it into your Wo
yarn
yarn production


## Changelog

### 0.8.0
* See https://github.com/pressbooks/excalibur/releases/tag/0.8.0
* Full release history at https://github.com/pressbooks/excalibur/releases/
### Changelog
Please see the [CHANGELOG](CHANGELOG.md) file for more information.
38 changes: 22 additions & 16 deletions excalibur.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
<?php
/*
Plugin Name: Excalibur
Plugin URI: https://github.com/pressbooks/excalibur/
GitHub Plugin URI: pressbooks/excalibur
Release Asset: true
Requires at least: 6.5
Requires Plugins: pressbooks
Description: Excalibur is a SWORD protocol client for Pressbooks.
Version: 0.8.0
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.org
Requires PHP: 8.1
Text Domain: excalibur
License: GPL v3 or later
Network: True
*/
/**
* Plugin Name: Excalibur
* Plugin URI: https://github.com/pressbooks/excalibur/
* GitHub Plugin URI: pressbooks/excalibur
* Release Asset: true
* Requires at least: WordPress 6.5
* Requires Plugins: pressbooks
* Description: Excalibur is a SWORD protocol client for Pressbooks.
* x-release-please-start-version
* Version: 0.8.0
* x-release-please-end
* Author: Pressbooks (Book Oven Inc.)
* Author URI: https://pressbooks.org
* Requires PHP: 8.1
* Text Domain: excalibur
* License: GPL v3 or later
* Network: True
*
* @package Excalibur
* @author Pressbooks (Book Oven Inc.)
* @license GPL-3.0-or-later
*/

// -------------------------------------------------------------------------------------------------------------------
// Class autoloader
Expand Down
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://github.com/raw/googleapis/release-please/main/schemas/config.json",
"release-type": "simple",
"include-component-in-tag": false,
"include-v-in-tag": false,
"packages": {
".": {
"extra-files": ["excalibur.php", "README.md"]
}
}
}

0 comments on commit df03b6a

Please sign in to comment.