Skip to content

Commit

Permalink
feat: scope dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Scoped dependencies to prevent collisions. References to namespace `\Mpdf` is now `\WCCartPDF\Mpdf`
  • Loading branch information
dkjensen committed Sep 13, 2024
1 parent ca6575a commit ba020ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 65 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install npm packages
- name: Set-up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Configure GitHub token for Composer
run: composer config --global github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}

- name: Add private repository to Composer's global config
run: |
composer global config repositories.mozart '{"type": "vcs", "url": "https://github.com/dkjensen/mozart"}'
- name: Install Mozart globally
run: composer global require dkjensen/mozart:dev-master

- name: Build release
shell: bash
run: |
npm i
npm ci --no-optional
- name: Semantic release
id: semantic
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Adds ability for users and guests to download their WooCommerce cart as PDF. Use

== Changelog ==

3.0.0
* **BREAKING CHANGE**: Scoped dependencies to prevent collisions. References to namespace `\Mpdf` is now `\WCCartPDF\Mpdf`

2.10.0
* Set minimum compatibility to PHP 8+

Expand Down

0 comments on commit ba020ec

Please sign in to comment.