ci: use semantic release action v3

This commit is contained in:
rlespinasse
2022-06-16 23:08:50 +02:00
committed by Romain Lespinasse
parent 944fee4603
commit 99afdf4551
4 changed files with 2252 additions and 1865 deletions

29
.github/workflows/release-dryrun.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: '[v3] 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@v3
with:
branches: |
[
"${{ env.GITHUB_REF_NAME }}"
]
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
dry_run: true
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

View File

@@ -1,4 +1,4 @@
name: "[v3] Release" name: '[v3] Release'
on: on:
push: push:
@@ -13,6 +13,11 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: npm install - run: npm install
- run: npm run all - run: npm run all
- uses: cycjimmy/semantic-release-action@v2 - uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}

4052
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "http://github.com/rlespinasse/github-slug-action.git" "url": "https://github.com/rlespinasse/github-slug-action.git"
}, },
"keywords": [ "keywords": [
"actions", "actions",
@@ -26,26 +26,26 @@
], ],
"author": "rlespinasse", "author": "rlespinasse",
"dependencies": { "dependencies": {
"@actions/core": "^1.2.6" "@actions/core": "^1.9.1"
}, },
"devDependencies": { "devDependencies": {
"@semantic-release/changelog": "^5.0.1", "@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0", "@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0", "@semantic-release/git": "^9.0.1",
"@types/jest": "^26.0.20", "@types/jest": "^26.0.24",
"@types/node": "^14.14.21", "@types/node": "^14.18.25",
"@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/eslint-plugin": "^4.33.0",
"@vercel/ncc": "^0.23.0", "@vercel/ncc": "^0.23.0",
"eslint": "^7.18.0", "eslint": "^7.32.0",
"eslint-plugin-github": "^4.1.1", "eslint-plugin-github": "^4.3.7",
"eslint-plugin-jest": "^23.20.0", "eslint-plugin-jest": "^23.20.0",
"jest": "^26.6.3", "jest": "^26.6.3",
"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.7.1",
"semantic-release": "^17.4.0", "semantic-release": "^19.0.3",
"ts-jest": "^26.4.4", "ts-jest": "^26.5.6",
"typescript": "^3.9.7" "typescript": "^3.9.10"
}, },
"files": [ "files": [
"/dist" "/dist"
@@ -66,7 +66,6 @@
"@semantic-release/github" "@semantic-release/github"
], ],
"branches": [ "branches": [
"v2.x",
"v3.x" "v3.x"
] ]
} }