mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-06-14 02:21:06 +00:00
ci: prepare v4.x release branch
This commit is contained in:
28
.github/workflows/codeql-analysis.yml
vendored
28
.github/workflows/codeql-analysis.yml
vendored
@@ -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
|
|
||||||
31
.github/workflows/linter.yml
vendored
31
.github/workflows/linter.yml
vendored
@@ -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/.*
|
|
||||||
25
.github/workflows/release-dryrun.yml
vendored
25
.github/workflows/release-dryrun.yml
vendored
@@ -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 }}
|
|
||||||
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -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 }}
|
|
||||||
27
package.json
27
package.json
@@ -6,7 +6,6 @@
|
|||||||
"description": "Github slug action",
|
"description": "Github slug action",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "semantic-release",
|
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"format": "prettier --write **/*.ts",
|
"format": "prettier --write **/*.ts",
|
||||||
"format-check": "prettier --check **/*.ts",
|
"format-check": "prettier --check **/*.ts",
|
||||||
@@ -29,9 +28,6 @@
|
|||||||
"@actions/core": "^1.2.6"
|
"@actions/core": "^1.2.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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/jest": "^26.0.20",
|
||||||
"@types/node": "^14.14.21",
|
"@types/node": "^14.14.21",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
||||||
@@ -43,31 +39,10 @@
|
|||||||
"jest-circus": "^26.6.3",
|
"jest-circus": "^26.6.3",
|
||||||
"js-yaml": "^3.14.1",
|
"js-yaml": "^3.14.1",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"semantic-release": "^17.4.0",
|
|
||||||
"ts-jest": "^26.4.4",
|
"ts-jest": "^26.4.4",
|
||||||
"typescript": "^3.9.7"
|
"typescript": "^3.9.7"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"/dist"
|
"/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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user