Skip to content

Commit

Permalink
Merge pull request #22 from dhensby/pulls/semantic-release
Browse files Browse the repository at this point in the history
ci: use composer.json for cache calculation
  • Loading branch information
dhensby authored Aug 31, 2023
2 parents fdbe4b4 + 507e3aa commit 84eb904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-php7.1-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-composer-php7.1-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-php7.1-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-scripts --no-plugins
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-php${{ matrix.php_version }}-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-composer-php${{ matrix.php_version }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-php${{ matrix.php_version }}-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-scripts --no-plugins
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install --global semantic-release@21 @semantic-release/git@10 @semantic-release/changelog@6 @semantic-release/changelog@6
run: npm install --global semantic-release@21 @semantic-release/git@10 @semantic-release/changelog@6 @semantic-release/changelog@6 @commitlint/config-conventional@17
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
preset: conventionalcommits
plugins:
- '@semantic-release/commit-analyzer'
- ['@semantic-release/commit-analyzer', {preset: 'conventionalcommits'}]
- '@semantic-release/release-notes-generator'
- ['@semantic-release/changelog', {changelogTitle: '# Changelog'}]
- '@semantic-release/github'
Expand Down

0 comments on commit 84eb904

Please sign in to comment.