From 89d549d2ff35b9c9f7e1d41e52a27d35b4748bc2 Mon Sep 17 00:00:00 2001 From: cycjimmy Date: Fri, 18 Oct 2019 14:17:47 +0800 Subject: [PATCH] test(testRelease): add Test Release workflow --- .github/workflows/testRelease.yml | 27 +++++++++++++++++++++++++++ README.md | 1 + release.config.js | 1 + 3 files changed, 29 insertions(+) create mode 100644 .github/workflows/testRelease.yml diff --git a/.github/workflows/testRelease.yml b/.github/workflows/testRelease.yml new file mode 100644 index 0000000..18e5faa --- /dev/null +++ b/.github/workflows/testRelease.yml @@ -0,0 +1,27 @@ +name: Test Release + +on: + push: + branches: + - master + +jobs: + test: + name: release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Semantic Release + uses: cycjimmy/semantic-release-action@master + with: + extra_plugins: | + @semantic-release/git + @semantic-release/changelog + dry_run: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + diff --git a/README.md b/README.md index 4c22147..594a339 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Semantic Release Action +![](https://github.com/cycjimmy/semantic-release-action/workflows/Test%20Release/badge.svg) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) GitHub Action for [Semantic Release](https://github.com/semantic-release/semantic-release). diff --git a/release.config.js b/release.config.js index f06af2e..b75056d 100644 --- a/release.config.js +++ b/release.config.js @@ -1,4 +1,5 @@ module.exports = { + "dryRun": false, "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator",