Skip to content

Commit 5a300bf

Browse files
Merge pull request #39 from boldare/chore/github-actions
docs: workflow for publishing new release versions
2 parents 2b75421 + 5a08124 commit 5a300bf

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

.github/workflows/commit-lint.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
name: Commitlint
2-
1+
name: Lint Commit Messages
32
on: [pull_request]
43

4+
permissions:
5+
contents: read
6+
pull-requests: read
7+
58
jobs:
6-
lint:
9+
commitlint:
710
runs-on: ubuntu-latest
8-
env:
9-
GITHUB_TOKEN: ${{ secrets.BOLDARE_GITHUB_TOKEN }}
1011
steps:
11-
- uses: actions/checkout@v2
12-
with:
13-
fetch-depth: 0
14-
- uses: wagoid/commitlint-github-action@v1
15-
with:
16-
configFile: .commitlintrc.js
12+
- uses: actions/checkout@v3
13+
- uses: wagoid/commitlint-github-action@v5

.github/workflows/publish.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
permissions:
9-
contents: read
10-
packages: write
118
steps:
129
- uses: actions/checkout@v4
13-
# Setup .npmrc file to publish to GitHub Packages
1410
- uses: actions/setup-node@v4
1511
with:
1612
node-version: '20.x'
17-
registry-url: 'https://npm.pkg.github.com'
18-
scope: '@boldare'
13+
registry-url: 'https://registry.npmjs.org'
1914
- run: npm ci
20-
- run: npm publish
15+
- run: npm run publish
2116
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.BOLDARE_GITHUB_TOKEN }}
17+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

libs/ai-assistant/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@boldare/ai-assistant",
3-
"version": "0.0.2-dev.5",
3+
"version": "0.0.2-dev.6",
44
"private": false,
55
"dependencies": {
66
"tslib": "^2.3.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"format": "nx format:write",
2323
"prepare": "husky"
2424
},
25-
"private": true,
25+
"private": false,
2626
"dependencies": {
2727
"@angular/animations": "~17.0.0",
2828
"@angular/cdk": "^17.0.5",

0 commit comments

Comments
 (0)