Skip to content

Commit 5d4c851

Browse files
authored
Change packaging (#1)
1 parent d3394e3 commit 5d4c851

File tree

8 files changed

+243
-5855
lines changed

8 files changed

+243
-5855
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# This CI triggered on PRs.
3+
#
4+
# Verify if `npm run build:dist` pass
5+
#
6+
on:
7+
- pull_request
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
registry-url: "https://npm.pkg.github.com"
21+
- run: npm install
22+
- run: npm run prepublish

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,10 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 18
18-
registry-url: https://registry.npmjs.org/
17+
node-version: "18.x"
18+
registry-url: "https://npm.pkg.github.com"
19+
scope: "@lensapp"
1920
- run: npm ci
2021
- run: npm publish
2122
env:
22-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
23-
24-
notify:
25-
needs: publish-npm
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v3
29-
- uses: actions/setup-node@v3
30-
with:
31-
node-version: 18
32-
registry-url: https://registry.npmjs.org/
33-
cache: 'npm'
34-
- run: npm install -g @s3pweb/release-message-creator
35-
- run: create-release-message -m "Publication de @s3pweb/keycloak-admin-client-cjs, version %s :" -w ${{secrets.DISCORD_WEBHOOK_LIBS}}
23+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.versionrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

commitlint.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)