ci: prepare v4.x release branch

This commit is contained in:
rlespinasse
2021-12-05 00:27:10 +01:00
parent 046be07299
commit 200b9d942b
5 changed files with 1 additions and 128 deletions

View File

@@ -1,28 +0,0 @@
name: CodeQL
on:
push:
branches:
- v3.x
pull_request:
branches:
- v3.x
schedule:
- cron: "0 6 * * 1"
jobs:
analyse:
name: analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["javascript"]
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- uses: actions/checkout@v2
- uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- uses: github/codeql-action/autobuild@v1
- uses: github/codeql-action/analyze@v1

View File

@@ -1,31 +0,0 @@
name: Lint
on:
push:
branches:
- v3.x
pull_request:
branches:
- v3.x
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_TYPESCRIPT_STANDARD: false
LINTER_RULES_PATH: .
JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json
JAVASCRIPT_DEFAULT_STYLE: prettier
DEFAULT_BRANCH: v3.x
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_INCLUDE: .*src/.*

View File

@@ -1,25 +0,0 @@
name: Release DryRun
on:
push:
branches-ignore:
- v*.x
jobs:
release-dryrun:
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- uses: actions/checkout@v2
- run: npm install
- run: npm run all
- uses: ./
- uses: cycjimmy/semantic-release-action@v2
with:
branches: |
[
"${{ env.GITHUB_REF_NAME }}"
]
dry_run: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,18 +0,0 @@
name: Release
on:
push:
branches:
- v*.x
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- uses: actions/checkout@v2
- run: npm install
- run: npm run all
- uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -6,7 +6,6 @@
"description": "Github slug action",
"main": "lib/main.js",
"scripts": {
"release": "semantic-release",
"build": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
@@ -29,9 +28,6 @@
"@actions/core": "^1.2.6"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.21",
"@typescript-eslint/eslint-plugin": "^4.22.0",
@@ -43,31 +39,10 @@
"jest-circus": "^26.6.3",
"js-yaml": "^3.14.1",
"prettier": "^2.2.1",
"semantic-release": "^17.4.0",
"ts-jest": "^26.4.4",
"typescript": "^3.9.7"
},
"files": [
"/dist"
],
"release": {
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "git add dist"
}
],
"@semantic-release/git",
"@semantic-release/github"
],
"branches": [
"v2.x",
"v3.x"
]
}
]
}