Skip to content

Commit

Permalink
chore(ci): add manual changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Jan 7, 2025
1 parent 9056da3 commit df0fbb4
Show file tree
Hide file tree
Showing 5 changed files with 6,976 additions and 12,160 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# Workflow base: https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions

name: Publish release

name: Generate new release
on:
workflow_dispatch:

permissions:
contents: read # for checkout

push:
tags:
- 'v1*'
jobs:
release:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' #|| github.ref == 'refs/heads/main'
Expand All @@ -22,7 +17,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -31,15 +25,26 @@ jobs:
run: npm ci
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

- name: Build library
run: npm run build:lib
- name: Copy readme and npmrc files to dist folder
run: |
cp README.md dist/design-angular-kit/README.md
cp .npmrc dist/design-angular-kit/.npmrc
- name: Release
- name: Publish package to NPM
run: npm publish
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm i extract-changelog-release
- name: Generate Release Body
run: npx extract-changelog-release > RELEASE_BODY.md
- uses: ncipollo/release-action@v1
with:
bodyFile: 'RELEASE_BODY.md'
token: ${{ secrets.GITHUB_TOKEN }}
- uses: italia/[email protected]
with:
slack_token: ${{ secrets.SLACK_TOKEN }}
channel_id: ${{ secrets.SLACK_CHANNEL }}
project_name: Design Angular Kit
59 changes: 0 additions & 59 deletions .releaserc.js

This file was deleted.

Loading

0 comments on commit df0fbb4

Please sign in to comment.