Skip to content

Commit

Permalink
ci: migrate to python semantic release (#134)
Browse files Browse the repository at this point in the history
* ci: migrate to python semantic release

* ci: add version variable file

* ci: update remote name
  • Loading branch information
HKuz authored Aug 3, 2023
1 parent 6f17c03 commit 404edf3
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 17 deletions.
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
}
}
}

0 comments on commit 404edf3

Please sign in to comment.