Skip to content

Commit

Permalink
fix: github action for generating updated docs on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsan-javaid authored and diwakergupta committed Aug 31, 2021
1 parent 4a7258d commit 6d9ff4d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ name: Release
on:
push:
branches:
- '**'
- master
tags-ignore:
- '**'
paths-ignore:
- '**/CHANGELOG.md'
- '**/package.json'
- 'docs/**'
pull_request:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
# Only run on non-PR events or only PRs that aren't from forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v2
- name: Set Node Version
Expand All @@ -36,8 +39,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_OPTIONS: --max-old-space-size=4096
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }} # Always needed
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@
],
"release": {
"branches": [
"master",
"next"
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"docs"
],
"message": "chore(release docs): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
]
}
]
]
Expand Down

1 comment on commit 6d9ff4d

@vercel
Copy link

@vercel vercel bot commented on 6d9ff4d Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.