Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,14 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run semantic-release for dart package
run: |
npx semantic-release || EXIT_CODE=$?
if [ ${EXIT_CODE:-0} -ne 0 ] && [ ${EXIT_CODE:-0} -ne 69 ]; then
exit $EXIT_CODE
fi
working-directory: packages/dart
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
PKG_NAME: dart
- name: Run semantic-release for flutter package
run: |
npx semantic-release || EXIT_CODE=$?
if [ ${EXIT_CODE:-0} -ne 0 ] && [ ${EXIT_CODE:-0} -ne 69 ]; then
exit $EXIT_CODE
fi
working-directory: packages/flutter
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
PKG_NAME: flutter
1 change: 1 addition & 0 deletions packages/dart/.releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../release.config.js');
1 change: 1 addition & 0 deletions packages/flutter/.releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../../release.config.js');
6 changes: 1 addition & 5 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function config() {
];

const config = {
extends: 'semantic-release-monorepo',
branches: [
'master',
// { name: 'alpha', prerelease: true },
Expand All @@ -83,11 +84,6 @@ async function config() {
noteKeywords: [ 'BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING' ],
},
}],
['@semantic-release/exec', {
verifyConditionsCmd: packageName !== 'root'
? `bash -c 'LAST_TAG=$(git describe --tags --abbrev=0 --match="${packageName}-*" 2>/dev/null || echo ""); if [ -n "$LAST_TAG" ]; then git diff --name-only $LAST_TAG HEAD | grep -q "^packages/${packageName}/"; else git log --all --name-only --pretty=format: | grep -q "^packages/${packageName}/"; fi || (echo "No changes in packages/${packageName}, skipping release" && exit 69)'`
: 'echo "Root package always runs"',
}],
['@semantic-release/release-notes-generator', {
preset: 'angular',
parserOpts: {
Expand Down