-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add manual changelog generator
- Loading branch information
Showing
5 changed files
with
6,976 additions
and
12,160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
@@ -22,7 +17,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.