Skip to content

Commit

Permalink
fix(docs): changelog
Browse files Browse the repository at this point in the history
- fix changelog path when generated

Signed-off-by: Cory Rylan <cory@coryrylan.com>
  • Loading branch information
coryrylan committed Jan 8, 2023
1 parent 35d8d1d commit d4542d9
Show file tree
Hide file tree
Showing 17 changed files with 252 additions and 189 deletions.
1 change: 1 addition & 0 deletions commitlint.config.js → .commitlintrc.js
@@ -1,6 +1,7 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['build', 'docs', 'components', 'grid', 'icons', 'layout', 'themes', 'typewriter', 'typography']],
'body-empty': [0, 'never'],
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [2, 'always'],
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/firebase-hosting-merge.yml

This file was deleted.

@@ -1,10 +1,9 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Build and Preview
on: pull_request

name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
build:
name: 'Build'
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
Expand All @@ -15,7 +14,7 @@ jobs:
cache: 'npm'
- uses: google/wireit@setup-github-actions-caching/v1
- run: npm ci
- run: cd docs && npm run ci
- run: npm run ci
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
@@ -1,12 +1,12 @@
name: Release
name: Build and Release
on:
push:
branches:
- main

jobs:
release:
name: Release
name: 'Build'
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
Expand All @@ -18,8 +18,14 @@ jobs:
- uses: google/wireit@setup-github-actions-caching/v1
- run: npm ci
- run: npm run ci
- name: Release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: npx semantic-release
run: npx semantic-release
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SITES_FC2CF }}'
channelId: live
projectId: sites-fc2cf
entryPoint: ./docs
12 changes: 12 additions & 0 deletions .releaserc.js
Expand Up @@ -14,6 +14,18 @@ module.exports = {
],
'@semantic-release/release-notes-generator',
'@semantic-release/github',
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md"]
}
],
[
'@amanda-mitchell/semantic-release-npm-multiple',
{
Expand Down
8 changes: 0 additions & 8 deletions CHANGELOG.md
@@ -1,8 +0,0 @@
# Changelog

- [components](https://github.com/blueprintui/blueprintui/blob/main/packages/components/CHANGELOG.md)
- [icons](https://github.com/blueprintui/blueprintui/blob/main/packages/icons/CHANGELOG.md)
- [layout](https://github.com/blueprintui/blueprintui/blob/main/packages/layout/CHANGELOG.md)
- [themes](https://github.com/blueprintui/blueprintui/blob/main/packages/themes/CHANGELOG.md)
- [typography](https://github.com/blueprintui/blueprintui/blob/main/packages/typography/CHANGELOG.md)
- [typewriter](https://github.com/blueprintui/blueprintui/blob/main/packages/typewriter/CHANGELOG.md)
2 changes: 1 addition & 1 deletion docs/src/_pages/changelog.11ty.js
@@ -1,7 +1,7 @@
import fs from 'fs';

const changelog = fs
.readFileSync('../packages/components/CHANGELOG.md', 'utf8')
.readFileSync('../CHANGELOG.md', 'utf8')
.replace('# Changelog', '## @blueprintui/components');

export const data = {
Expand Down

0 comments on commit d4542d9

Please sign in to comment.