Skip to content
Snippets Groups Projects
Commit 172acc56 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

feat: Implement automated release using semantic-release.

parent 3223f6a7
No related branches found
No related tags found
No related merge requests found
Pipeline #92506 failed
......@@ -97,3 +97,6 @@ fabric.properties
*.p8
testNotification.php
/node_modules/
yarn-error.log
......@@ -2,6 +2,7 @@ image: composer:latest
stages:
- lint
- publish
cache:
paths:
......@@ -33,3 +34,19 @@ php-lint-examples:
tags:
- docker
allow_failure: true
publish:
image: node:lts
stage: publish
before_script:
- yarn install
script:
- yarn semantic-release
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
tags:
- docker
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /chore(release)$/
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@ambimax/semantic-release-composer",
"@semantic-release/gitlab",
[
"@semantic-release/git",
{
"assets": ["composer.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
]
]
}
{
"name": "zandor300/apnsframework",
"version": "1.3.3",
"description": "PHP framework for easy interaction with Apple's Push Notification Service.",
"type": "library",
"keywords": ["APNS", "Framework", "Apple", "iOS", "push", "notification"],
......
{
"name": "@zandor300/apnsframework",
"private": true,
"dependencies": {
"@iwavesmedia/semantic-release-composer": "1.0.0",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"@semantic-release/gitlab": "9.0.0",
"semantic-release": "19.0.2"
}
}
yarn.lock 0 → 100644
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment