Skip to content

Commit

Permalink
Merge pull request #85 from agritheory/v14_fix_release
Browse files Browse the repository at this point in the history
ci: fix release CI
  • Loading branch information
agritheory authored Apr 3, 2023
2 parents 813be9e + 9c954d5 commit 997c42c
Show file tree
Hide file tree
Showing 4 changed files with 507 additions and 68 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches:
- version-13
- version-14
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
58 changes: 58 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
exclude: 'node_modules|.git'
default_stages: [commit]
fail_fast: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
files: "frappe.*"
exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
- id: check-yaml
- id: no-commit-to-branch
args: ['--branch', 'develop']
- id: check-merge-conflict
- id: check-ast
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements

- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
args: ['--py310-plus']

- repo: https://github.com/frappe/black
rev: 951ccf4d5bb0d692b457a5ebc4215d755618eb68
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types_or: [javascript]
# Ignore any files that might contain jinja / bundles
exclude: |
(?x)^(
frappe/public/dist/.*|
.*node_modules.*|
.*boilerplate.*|
frappe/www/website_script.js|
frappe/templates/includes/.*|
frappe/public/js/lib/.*
)$
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies: ['flake8-bugbear',]

ci:
autoupdate_schedule: weekly
skip: []
submodules: false
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "check_run",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@testing-library/cypress": "^8",
Expand All @@ -8,5 +9,19 @@
"cypress": "^6",
"ts-custom-error": "~3.0.0"
},
"browser": "./cypress/support/index.js"
}
"browser": "./cypress/support/index.js",
"repository": {
"type": "git",
"url": "https://github.com/agritheory/check_run.git"
},
"publishConfig": {
"access": "restricted",
"registry": "https://npm.pkg.github.com"
},
"release": {
"branches": [
"version-13",
"version-14"
]
}
}
Loading

0 comments on commit 997c42c

Please sign in to comment.