Skip to content

Commit

Permalink
workflow(release): install semantic-release plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery committed Dec 16, 2020
1 parent b2685ce commit b740de9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
push:
branches:
- build/*
- master
- next
- +([0-9])?(.{+([0-9]),x}).x
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b740de9

Please sign in to comment.