Skip to content

Commit

Permalink
Merge pull request #12 from yeremi/chore/update-release
Browse files Browse the repository at this point in the history
chore: update release
  • Loading branch information
yeremi authored Jan 5, 2025
2 parents e96da87 + 0387055 commit 6271550
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 54 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ jobs:
php-version: ${{ matrix.php }}

- name: Install Dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run PHP Lint
run: find . -type f -name "*.php" -exec php -l {} \;
uses: ramsey/composer-install@v1
with:
composer-options: "--prefer-dist"

- name: Run PHPStan
run: ./vendor/bin/phpstan analyse -l 3 src tests --memory-limit=512M
Expand Down
37 changes: 8 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,25 @@
name: Stopwords Release

name: Release
on:
push:
branches:
- main
- master

workflow_dispatch:

jobs:
release:
name: Create Release
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Set up PHP
uses: shivammathur/setup-php@v2
uses: actions/setup-node@v4
with:
php-version: '8.2'
extensions: mbstring, bcmath
node-version: 18

- name: Install Dependencies
run: |
npm init -y
npm install --save-dev semantic-release @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github
- name: Install dependencies
run: npm ci

- name: Create Release
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
21 changes: 0 additions & 21 deletions .releaserc.json

This file was deleted.

24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@
"natural language processing"
],
"license": "MIT",
"private": true,
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.3",
"semantic-release": "^24.2.0"
}
}
31 changes: 31 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
"branches": [
"main",
"next",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/npm", {
"tarballDir": "release",
"npmPublish": false
}],
"@semantic-release/exec",
"@semantic-release/github",
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "package-lock.json", "package.json", "composer.json"],
"message": "chore(release): \${nextRelease.version} [skip ci]\n\n\${nextRelease.notes}"
}]
],
"preset": "angular",
"tagFormat": "${version}"
}

0 comments on commit 6271550

Please sign in to comment.