Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
ci: Update release notes generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Oct 10, 2023
1 parent 7539191 commit 6d2ee15
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 98 deletions.
2 changes: 2 additions & 0 deletions .github/actions/init-npm/action.yml
Expand Up @@ -2,9 +2,11 @@ inputs:
node-version:
description: Node version
required: true
default: '20'
gh-token:
description: GH token
required: true
default: ${{ github.token }}
name: Set up npm
description: Set up npm and install dependencies
runs:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/codeql.yml
Expand Up @@ -2,9 +2,8 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches: [master]
pull_request: {}
schedule:
- cron: "39 15 * * 4"

Expand Down
32 changes: 22 additions & 10 deletions .github/workflows/core.yml
@@ -1,7 +1,8 @@
name: Core
on:
- push
- pull_request
push:
branches: [master]
pull_request: {}

jobs:
test:
Expand All @@ -10,19 +11,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: NPM Init
uses: ./.github/actions/init-npm
with:
node-version: 18
gh-token: ${{ secrets.GITHUB_TOKEN }}

- name: Sync pkg
run: npm run sync

- name: Build demo
run: npm run build:demo

- name: Test
run: npm run test
env:
CI: 'true'

- name: Upload coverage
if: ${{ runner.os != 'windows-latest' }}
continue-on-error: true
Expand All @@ -31,8 +34,13 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ inputs.node-version }}-on-${{ runner.os }}-${{ github.event_name }}
path-to-lcov: ./coverage/ngforage/lcov.info

- name: Test making docs
run: npm run compodoc

- name: Release dry run
run: npm run release -- --dry-run

release:
name: Release
runs-on: ubuntu-latest
Expand All @@ -44,26 +52,30 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1000
persist-credentials: false

- name: Init NPM
uses: ./.github/actions/init-npm
with:
node-version: 18
gh-token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v3
name: Reconfig Node
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org

- name: Build demo site
run: npm run build:demo:prod

- name: Build docs
run: npm run compodoc

- name: Release
run: npm run release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release github pages
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
Expand Down
106 changes: 22 additions & 84 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -48,7 +48,7 @@
"tslib": "^2.4.0"
},
"devDependencies": {
"@alorel-personal/conventional-changelog-alorel": "2.1.3",
"@alorel-personal/conventional-changelog-alorel": "3.0.0",
"@angular-devkit/build-angular": "^16.1.5",
"@angular/cli": "^16.1.5",
"@angular/common": "^16.1.6",
Expand Down

0 comments on commit 6d2ee15

Please sign in to comment.