Skip to content

Commit

Permalink
chore: 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 36d71d3 commit 322b063
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 124 deletions.
2 changes: 2 additions & 0 deletions .github/actions/init-npm/action.yml
Original file line number Diff line number Diff line change
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
20 changes: 0 additions & 20 deletions .github/actions/test/action.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
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 All @@ -24,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
44 changes: 29 additions & 15 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
name: Core
on:
- push
- pull_request
push:
branches: [master]
pull_request: {}

jobs:
test:
runs-on: ubuntu-latest
name: Test ubuntu-latest/Node 18
name: Test
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: NPM Init
uses: ./.github/actions/init-npm

- name: Test
uses: ./.github/actions/test
with:
node-version: 20
gh-token: ${{ secrets.GITHUB_TOKEN }}
run: npm test

- name: Release dry run
run: npm run release:dry
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload coverage
if: ${{ runner.os != 'windows-latest' }}
continue-on-error: true
uses: coverallsapp/[email protected].0
uses: coverallsapp/[email protected].3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ inputs.node-version }}-on-${{ runner.os }}-${{ github.event_name }}
path-to-lcov: ./coverage/ngx-sails/lcov.info

release:
name: Release
runs-on: ubuntu-latest
Expand All @@ -31,22 +45,22 @@ jobs:
- test
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1000
persist-credentials: false

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

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

- 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 }}
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.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build": "ng build ngx-sails",
"watch": "npm --scripts-prepend-node-path=auth run build -- --watch",
"release": "semantic-release",
"release:dry": "semantic-release --dry-run",
"test": "node --no-deprecation ./node_modules/.bin/ng test ngx-sails --progress --code-coverage",
"test:watch": "npm --scripts-prepend-node-path=auth run test -- --watch"
},
Expand Down Expand Up @@ -45,7 +46,7 @@
"zone.js": "~0.13.3"
},
"devDependencies": {
"@alorel-personal/conventional-changelog-alorel": "^2.1.3",
"@alorel-personal/conventional-changelog-alorel": "^3.0.0",
"@angular-builders/custom-webpack": "^16.0.1",
"@angular-devkit/build-angular": "^16.2.5",
"@angular/cli": "^16.2.5",
Expand Down

0 comments on commit 322b063

Please sign in to comment.