mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
perf(*): use the latest version of semantic-release by default
This commit is contained in:
parent
5a0c5056e4
commit
600e4f0e2b
7 changed files with 19 additions and 5470 deletions
2
.github/workflows/checkPullRequest.yml
vendored
2
.github/workflows/checkPullRequest.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
extra_plugins: |
|
||||
@semantic-release/git@7.0.18
|
||||
@semantic-release/git
|
||||
@semantic-release/changelog
|
||||
dry_run: true
|
||||
env:
|
||||
|
|
|
|||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -17,12 +17,12 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
id: semantic
|
||||
with:
|
||||
branch: master
|
||||
extra_plugins: |
|
||||
@semantic-release/git@7.0.18
|
||||
@semantic-release/git
|
||||
@semantic-release/changelog
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
4
.github/workflows/testRelease.yml
vendored
4
.github/workflows/testRelease.yml
vendored
|
|
@ -17,11 +17,11 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
id: semantic
|
||||
with:
|
||||
extra_plugins: |
|
||||
@semantic-release/git@7.0.18
|
||||
@semantic-release/git
|
||||
@semantic-release/changelog
|
||||
dry_run: true
|
||||
env:
|
||||
|
|
|
|||
20
README.md
20
README.md
|
|
@ -18,7 +18,7 @@ GitHub Action for [Semantic Release](https://github.com/semantic-release/semanti
|
|||
#### Step3: Add a [Workflow File](https://help.github.com/en/articles/workflow-syntax-for-github-actions) to your repository to create custom automated processes.
|
||||
* inputs:
|
||||
* `branch`: [Optional] The branch on which releases should happen. It will override the branch attribute in your configuration file. If the attribute is not configured on both sides, the default is master.
|
||||
* `semantic_version`: [Optional] Specify specifying version range for semantic-release. If no version range is specified, semantic-release@^15 will be used by default.
|
||||
* `semantic_version`: [Optional] Specify specifying version range for semantic-release. If no version range is specified, latest version will be used by default.
|
||||
* `extra_plugins`: [Optional] Extra plugins for pre-install. You can also specify specifying version range for the extra plugins if you prefer.
|
||||
* `dry_run`: [Optional] Whether to run semantic release in `dry-run` mode. It will override the dryRun attribute in your configuration file.
|
||||
* outputs:
|
||||
|
|
@ -35,9 +35,9 @@ GitHub Action for [Semantic Release](https://github.com/semantic-release/semanti
|
|||
```yaml
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
@ -48,9 +48,9 @@ steps:
|
|||
```yaml
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
with:
|
||||
branch: master
|
||||
semantic_version: 15.13.28
|
||||
|
|
@ -67,9 +67,9 @@ _github-action_
|
|||
```yaml
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
with:
|
||||
# You can specify specifying version range for the extra plugins if you prefer.
|
||||
extra_plugins: |
|
||||
|
|
@ -96,12 +96,10 @@ _release-config_
|
|||
```yaml
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
uses: cycjimmy/semantic-release-action@v3
|
||||
id: semantic # Need an `id` for output variables
|
||||
with:
|
||||
branch: master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
|
|||
5447
package-lock.json
generated
5447
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -21,7 +21,6 @@
|
|||
},
|
||||
"homepage": "https://github.com/cycjimmy/semantic-release-action#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.0",
|
||||
"semantic-release": "^15.14.0"
|
||||
"@actions/core": "^1.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,12 +9,11 @@ const inputs = require('./inputs.json');
|
|||
*/
|
||||
module.exports = async () => {
|
||||
const semantic_version = core.getInput(inputs.semantic_version);
|
||||
const versionSuffix = semantic_version
|
||||
? `@${semantic_version}`
|
||||
: '';
|
||||
|
||||
if (!semantic_version) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const {stdout, stderr} = await exec(`npm install semantic-release@${semantic_version}`, {
|
||||
const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix}`, {
|
||||
cwd: path.resolve(__dirname, '..')
|
||||
});
|
||||
core.debug(stdout);
|
||||
|
|
|
|||
Loading…
Reference in a new issue