Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migrate to python semantic release #134

Merged
merged 3 commits into from
Aug 3, 2023
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
17 changes: 8 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
github_token: ${{ secrets.GITHUB_TOKEN }}
root_options: -c package.json
4 changes: 2 additions & 2 deletions .github/workflows/ui_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ jobs:
${{ runner.os }}-

- name: Install Dependencies
run: bash ${{GITHUB_WORKSPACE}}/.github/helper/install_dependencies.sh
run: bash ${{github.workspace}}/.github/helper/install_dependencies.sh

- name: Install
run: |
bash ${{GITHUB_WORKSPACE}}/.github/helper/install.sh
bash ${{github.workspace}}/.github/helper/install.sh

- name: Cypress run
uses: cypress-io/github-action@v4
Expand Down
85 changes: 79 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,83 @@
"publishConfig": {
"access": "restricted"
},
"release": {
"branches": [
"version-13",
"version-14"
]
}
"semantic_release": {
"assets": [],
"branches": {
"version-13": {
"match": "version-13",
"prerelease": false
},
"version-14": {
"match": "version-14",
"prerelease": false
}
},
"version_variables": [
"check_run/__init__.py:__version__"
],
"changelog": {
"template_dir": "templates",
"changelog_file": "CHANGELOG.md",
"exclude_commit_patterns": [],
"environment": {
"block_start_string": "{%",
"block_end_string": "%}",
"variable_start_string": "{{",
"variable_end_string": "}}",
"comment_start_string": "{#",
"comment_end_string": "#}",
"trim_blocks": false,
"lstrip_blocks": false,
"newline_sequence": "\n",
"keep_trailing_newline": false,
"extensions": [],
"autoescape": true
}
},
"commit_author": {
"env": "GIT_COMMIT_AUTHOR",
"default": "semantic-release <semantic-release>"
},
"commit_message": "{version}\n\nAutomatically generated by python-semantic-release",
"commit_parser": "angular",
"commit_parser_options": {
"allowed_tags": [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test"
],
"minor_tags": [
"feat"
],
"patch_tags": [
"fix",
"perf"
]
},
"logging_use_named_masks": false,
"major_on_zero": true,
"remote": {
"name": "origin",
"token": {
"env": "GH_TOKEN"
},
"type": "github",
"ignore_token_for_push": false
},
"tag_format": "v{version}",
"publish": {
"dist_glob_patterns": [
"dist/*"
],
"upload_to_vcs_release": true
}
}
}