mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-23 20:25:49 +00:00
ci(release): added semantic release
This commit is contained in:
parent
b68f4b7218
commit
503c88904d
10 changed files with 9116 additions and 94 deletions
39
.github/workflows/python-publish.yml
vendored
39
.github/workflows/python-publish.yml
vendored
|
|
@ -6,28 +6,41 @@
|
|||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
|
||||
name: deploy to pypi
|
||||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
|
||||
id: semantic
|
||||
with:
|
||||
semantic_version: 18
|
||||
extra_plugins: |
|
||||
@semantic-release/changelog@6
|
||||
@semantic-release/exec
|
||||
@semantic-release/git@10
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
|
||||
|
||||
- name: Build and publish package
|
||||
if: steps.semantic.outputs.new_release_published == 'true'
|
||||
uses: JRubics/poetry-publish@v1.10
|
||||
with:
|
||||
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
|
|
|||
19
.releaserc
Normal file
19
.releaserc
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"branches": ["master", "dev"],
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/changelog",
|
||||
["@semantic-release/npm", {
|
||||
"publish": "false"
|
||||
}],
|
||||
|
||||
["@semantic-release/exec", {
|
||||
"prepareCmd" : "poetry version ${nextRelease.version}"
|
||||
}],
|
||||
["@semantic-release/git", {
|
||||
"assets": ["package.json", "pyproject.toml"]
|
||||
}],
|
||||
"@semantic-release/github"
|
||||
]
|
||||
}
|
||||
32
docs/package-lock.json
generated
32
docs/package-lock.json
generated
|
|
@ -10,7 +10,7 @@
|
|||
"license": "AGPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@creativebulma/bulma-divider": "^1.1.0",
|
||||
"@fontsource/crimson-pro": "^4.5.7",
|
||||
"@fontsource/crimson-pro": "^4.5.8",
|
||||
"@fontsource/rasa": "^4.5.8",
|
||||
"@quasibit/eleventy-plugin-schema": "^1.9.1",
|
||||
"@sindresorhus/slugify": "^2.1.0",
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
"md5": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "1.0.1",
|
||||
"@11ty/eleventy": "^1.0.1",
|
||||
"@11ty/eleventy-img": "2.0.0",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "4.0.0",
|
||||
"@fontsource/inter": "4.5.7",
|
||||
|
|
@ -29,28 +29,28 @@
|
|||
"@fullhuman/postcss-purgecss": "4.1.3",
|
||||
"@toycode/markdown-it-class": "1.2.4",
|
||||
"algoliasearch": "4.13.0",
|
||||
"autoprefixer": "10.4.5",
|
||||
"autoprefixer": "^10.4.5",
|
||||
"bulma": "0.9.3",
|
||||
"bulma-pricingtable": "0.2.0",
|
||||
"cssnano": "5.1.7",
|
||||
"cz-conventional-changelog": "3.3.0",
|
||||
"eleventy-plugin-metagen": "1.6.1",
|
||||
"eslint": "8.14.0",
|
||||
"esbuild": "0.14.38",
|
||||
"esbuild": "^0.14.38",
|
||||
"eslint": "^8.14.0",
|
||||
"eslint-config-airbnb-base": "15.0.0",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"fontawesome-subset": "3.0.0",
|
||||
"html-minifier": "4.0.0",
|
||||
"markdown-it": "13.0.0",
|
||||
"markdown-it-anchor": "8.6.2",
|
||||
"markdown-it": "^13.0.0",
|
||||
"markdown-it-anchor": "^8.6.2",
|
||||
"markdown-it-div": "1.1.0",
|
||||
"markdown-it-imsize": "2.0.1",
|
||||
"outdent": "0.8.0",
|
||||
"postcss-cli": "9.1.0",
|
||||
"postcss-nested": "5.0.6",
|
||||
"prettier": "2.6.2",
|
||||
"prismjs": "1.28.0",
|
||||
"sass": "1.50.1",
|
||||
"prismjs": "^1.28.0",
|
||||
"sass": "^1.50.1",
|
||||
"slugify": "1.6.5"
|
||||
}
|
||||
},
|
||||
|
|
@ -657,9 +657,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@fontsource/crimson-pro": {
|
||||
"version": "4.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/crimson-pro/-/crimson-pro-4.5.7.tgz",
|
||||
"integrity": "sha512-1BAp8AviKn3AQuQIDVMHH5Xd7aqotXg8MT+8T35YN+BPybzB6lcQLQiJVryBu5upVCQv/Noo+6p9LrEkLlPAvA=="
|
||||
"version": "4.5.8",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/crimson-pro/-/crimson-pro-4.5.8.tgz",
|
||||
"integrity": "sha512-nhFZj0GdGT6ZCmGiRFBxRpNW9djuxEDmlIqfB4aDdEw+8wmxC348T2WDL8YYpurYXorw5MxicpdEfpPwLmdcBQ=="
|
||||
},
|
||||
"node_modules/@fontsource/inter": {
|
||||
"version": "4.5.7",
|
||||
|
|
@ -13033,9 +13033,9 @@
|
|||
}
|
||||
},
|
||||
"@fontsource/crimson-pro": {
|
||||
"version": "4.5.7",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/crimson-pro/-/crimson-pro-4.5.7.tgz",
|
||||
"integrity": "sha512-1BAp8AviKn3AQuQIDVMHH5Xd7aqotXg8MT+8T35YN+BPybzB6lcQLQiJVryBu5upVCQv/Noo+6p9LrEkLlPAvA=="
|
||||
"version": "4.5.8",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/crimson-pro/-/crimson-pro-4.5.8.tgz",
|
||||
"integrity": "sha512-nhFZj0GdGT6ZCmGiRFBxRpNW9djuxEDmlIqfB4aDdEw+8wmxC348T2WDL8YYpurYXorw5MxicpdEfpPwLmdcBQ=="
|
||||
},
|
||||
"@fontsource/inter": {
|
||||
"version": "4.5.7",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
"browserslist": "> 2%, not dead",
|
||||
"dependencies": {
|
||||
"@creativebulma/bulma-divider": "^1.1.0",
|
||||
"@fontsource/crimson-pro": "^4.5.7",
|
||||
"@fontsource/crimson-pro": "^4.5.8",
|
||||
"@fontsource/rasa": "^4.5.8",
|
||||
"@quasibit/eleventy-plugin-schema": "^1.9.1",
|
||||
"@sindresorhus/slugify": "^2.1.0",
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
"md5": "^2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "1.0.1",
|
||||
"@11ty/eleventy": "^1.0.1",
|
||||
"@11ty/eleventy-img": "2.0.0",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "4.0.0",
|
||||
"@fontsource/inter": "4.5.7",
|
||||
|
|
@ -33,28 +33,28 @@
|
|||
"@fullhuman/postcss-purgecss": "4.1.3",
|
||||
"@toycode/markdown-it-class": "1.2.4",
|
||||
"algoliasearch": "4.13.0",
|
||||
"autoprefixer": "10.4.5",
|
||||
"autoprefixer": "^10.4.5",
|
||||
"bulma": "0.9.3",
|
||||
"bulma-pricingtable": "0.2.0",
|
||||
"cssnano": "5.1.7",
|
||||
"cz-conventional-changelog": "3.3.0",
|
||||
"eleventy-plugin-metagen": "1.6.1",
|
||||
"eslint": "8.14.0",
|
||||
"esbuild": "0.14.38",
|
||||
"esbuild": "^0.14.38",
|
||||
"eslint": "^8.14.0",
|
||||
"eslint-config-airbnb-base": "15.0.0",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"fontawesome-subset": "3.0.0",
|
||||
"html-minifier": "4.0.0",
|
||||
"markdown-it": "13.0.0",
|
||||
"markdown-it-anchor": "8.6.2",
|
||||
"markdown-it": "^13.0.0",
|
||||
"markdown-it-anchor": "^8.6.2",
|
||||
"markdown-it-div": "1.1.0",
|
||||
"markdown-it-imsize": "2.0.1",
|
||||
"outdent": "0.8.0",
|
||||
"postcss-cli": "9.1.0",
|
||||
"postcss-nested": "5.0.6",
|
||||
"prettier": "2.6.2",
|
||||
"prismjs": "1.28.0",
|
||||
"sass": "1.50.1",
|
||||
"prismjs": "^1.28.0",
|
||||
"sass": "^1.50.1",
|
||||
"slugify": "1.6.5"
|
||||
},
|
||||
"config": {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ keywords: template linter, template formatter, djLint, HTML, templates, formatte
|
|||
# Changelog
|
||||
|
||||
<!--## {{ "next_release" i18n }}-->
|
||||
## 0.7.7
|
||||
::: content
|
||||
- Bug fixes [#224](https://github.com/Riverside-Healthcare/djLint/issues/224)
|
||||
:::
|
||||
|
||||
## 0.7.6
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ keywords: template linter, template formatter, djLint, HTML, templates, formatte
|
|||
# Changelog
|
||||
|
||||
<!--## {{ "next_release" i18n }}-->
|
||||
## 0.7.7
|
||||
::: content
|
||||
- Correction de bugs [#224](https://github.com/Riverside-Healthcare/djLint/issues/224)
|
||||
:::
|
||||
|
||||
## 0.7.6
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ keywords: облицовка шаблонов, форматер шаблонов
|
|||
# Изменения
|
||||
|
||||
<!--## {{ "next_release" i18n }}-->
|
||||
## 0.7.7
|
||||
::: content
|
||||
- Исправления ошибок [#224](https://github.com/Riverside-Healthcare/djLint/issues/224)
|
||||
:::
|
||||
|
||||
## 0.7.6
|
||||
|
||||
|
|
|
|||
9066
package-lock.json
generated
9066
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -54,7 +54,15 @@
|
|||
"yargs": "^17.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cz-conventional-changelog": "3.3.0"
|
||||
"@semantic-release/changelog": "^6.0.1",
|
||||
"@semantic-release/commit-analyzer": "^9.0.2",
|
||||
"@semantic-release/exec": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@semantic-release/github": "^8.0.4",
|
||||
"@semantic-release/npm": "^9.0.1",
|
||||
"@semantic-release/release-notes-generator": "^10.0.3",
|
||||
"cz-conventional-changelog": "3.3.0",
|
||||
"semantic-release": "^19.0.2"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ mypy-extensions==0.4.3; python_full_version >= "3.6.2"
|
|||
pathspec==0.9.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||
platformdirs==2.5.0; python_version >= "3.7" and python_full_version >= "3.6.2"
|
||||
pyyaml==6.0; python_version >= "3.6"
|
||||
regex==2022.4.24
|
||||
regex==2022.1.18
|
||||
tomli==2.0.1; python_version >= "3.7" and python_full_version >= "3.6.2"
|
||||
tomlkit==0.10.2; python_version >= "3.6" and python_version < "4.0"
|
||||
tqdm==4.64.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")
|
||||
typed-ast==1.5.3; python_version < "3.8" and implementation_name == "cpython" and python_full_version >= "3.6.2"
|
||||
typing-extensions==4.2.0; python_version < "3.8" and python_version >= "3.7" and python_full_version >= "3.6.2"
|
||||
zipp==3.8.0; python_version < "3.8" and python_version >= "3.7"
|
||||
tomlkit==0.10.1; python_version >= "3.6" and python_version < "4.0"
|
||||
tqdm==4.62.3; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")
|
||||
typed-ast==1.4.3; python_version < "3.8" and implementation_name == "cpython" and python_full_version >= "3.6.2"
|
||||
typing-extensions==4.1.0; python_version < "3.8" and python_version >= "3.7" and python_full_version >= "3.6.2"
|
||||
zipp==3.7.0; python_version < "3.8" and python_version >= "3.7"
|
||||
|
|
|
|||
Loading…
Reference in a new issue