Skip to content

Commit

Permalink
Merge pull request #381 from steilerDev/beta
Browse files Browse the repository at this point in the history
stage for production release
  • Loading branch information
Frank Steiler authored Oct 16, 2023
2 parents 43a728c + 45814c2 commit f26620d
Show file tree
Hide file tree
Showing 65 changed files with 4,962 additions and 3,267 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ body:
required: true
- label: Checked out [open and known issues](https://github.com/steilerDev/icloud-photos-sync/issues?q=is%3Aopen+is%3Aissue+label%3Aclass%28bug%29%2Cclass%28improvement%29%2C%22class%28known+issue%29%22)
required: true
- label: Enabled [crash and error reporting](https://steilerdev.github.io/icloud-photos-sync/user-guides/error-reporting/)
- label: Enabled [crash and error reporting](https://icps.steiler.dev/user-guides/cli/#enable-crash-reporting)
required: true
53 changes: 37 additions & 16 deletions .github/actions/helper/prepare-semantic-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,40 @@ runs:
- id: setup-dependencies
shell: bash
run: sudo apt-get install -y moreutils
- id: setup-release-rules
shell: bash
run: |
{
echo 'RELEASE_RULES<<EOF'
echo '[
{ "type": "majorfeat", "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "test", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "ci", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "docs", "release": "patch" },
{ "type": "no-release", "release": false },
{ "type": "style", "release": false }
]'
echo EOF
} >> "$GITHUB_ENV"
- id: setup-force-release
if: ${{ github.ref_name == 'dev' }}
shell: bash
run: |
{
echo 'RELEASE_RULES<<EOF'
echo $RELEASE_RULES | jq -c '. += [{"message": "**", "release": "patch"}]'
echo EOF
} >> "$GITHUB_ENV"
- id: setup-fs
shell: bash
run: |
mkdir ${{ inputs.release-dir }}
mkdir -p ${{ inputs.release-dir }}
cp ${{ github.action_path }}/package.json \
${{ github.action_path }}/package-lock.json \
Expand All @@ -39,22 +69,13 @@ runs:
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "majorfeat", "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "test", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "ci", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "docs", "release": "patch" },
{ "type": "style", "release": false }
]
"releaseRules": ${{ env.RELEASE_RULES }}
}
]]' |\
sponge ${{ inputs.release-dir }}/.releaserc.json
]]' |\
sponge ${{ inputs.release-dir }}/.releaserc.json
echo "Wrote:"
cat ${{ inputs.release-dir }}/.releaserc.json
- id: setup-node
uses: actions/setup-node@v3
with:
Expand Down
Loading

0 comments on commit f26620d

Please sign in to comment.