Skip to content

Commit

Permalink
Make: Upgrade to TinySemVer
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 1, 2024
1 parent 5fed965 commit 95c91a9
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 106 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,27 @@ permissions:
contents: read

jobs:

versioning:
name: Update Version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Run TinySemVer
uses: ashvardanian/[email protected]
with:
verbose: "true"
version-file: "VERSION"
update-version-in: |
package.json:"version": "(\d+\.\d+\.\d+)"
package-lock.json:"uform",\n\s+"version": "(\d+\.\d+\.\d+)"
CITATION.cff:^version: (\d+\.\d+\.\d+)
pyproject.toml:^version = "(\d+\.\d+\.\d+)"
dry-run: "true"

test_python:
name: Test Python
runs-on: ubuntu-latest
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,28 @@ permissions:

jobs:
versioning:
name: Semantic Release
name: Update Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
- name: Run TinySemVer
uses: ashvardanian/[email protected]
with:
node-version: 20
- run: npm install --save-dev --prefix ./package-ci @semantic-release/exec @semantic-release/git conventional-changelog-eslint semantic-release && npx --prefix ./package-ci semantic-release
verbose: "true"
version-file: "VERSION"
update-version-in: |
package.json:"version": "(\d+\.\d+\.\d+)"
package-lock.json:"uform",\n\s+"version": "(\d+\.\d+\.\d+)"
CITATION.cff:^version: (\d+\.\d+\.\d+)
pyproject.toml:^version = "(\d+\.\d+\.\d+)"
dry-run: "false"
push: "true"
create-release: "true"
github-token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

rebase:
name: Rebase Dev. Branch
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/update_version.sh

This file was deleted.

84 changes: 0 additions & 84 deletions .releaserc

This file was deleted.

1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cSpell.words": [
"arange",
"ashvardanian",
"astype",
"CFURL",
"coreml",
Expand Down
10 changes: 0 additions & 10 deletions package-ci.json

This file was deleted.

0 comments on commit 95c91a9

Please sign in to comment.