From b740de937736d48d2fc4706f4b08da637ce92bef Mon Sep 17 00:00:00 2001 From: "Deavon M. McCaffery" Date: Wed, 2 Dec 2020 03:26:58 +0000 Subject: [PATCH] workflow(release): install semantic-release plugins --- .github/workflows/end-to-end.yml | 1 - .github/workflows/release.yml | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/end-to-end.yml b/.github/workflows/end-to-end.yml index d391494..c02bb63 100644 --- a/.github/workflows/end-to-end.yml +++ b/.github/workflows/end-to-end.yml @@ -4,7 +4,6 @@ on: pull_request: push: branches: - - build/* - master - next - +([0-9])?(.{+([0-9]),x}).x diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 433c8f5..6f1a5c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,23 @@ jobs: - name: install-node uses: actions/setup-node@master + - name: semantic-release-prerequisites + run: | + npm install --no-package-lock --no-save \ + @semantic-release/commit-analyzer \ + @semantic-release/release-notes-generator \ + @semantic-release/changelog \ + @semantic-release/exec \ + @semantic-release/github + + - name: semantic-release-dry-run + run: npx semantic-release --ci --dry-run + if: ${{ github.event.repository.fork }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: semantic-release - run: npx semantic-release + run: npx semantic-release --ci + if: ${{ !github.event.repository.fork }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}