Skip to content

Commit

Permalink
Change packaging (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nevalla authored Jun 13, 2024
1 parent d3394e3 commit 5d4c851
Show file tree
Hide file tree
Showing 8 changed files with 243 additions and 5,855 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# This CI triggered on PRs.
#
# Verify if `npm run build:dist` pass
#
on:
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://npm.pkg.github.com"
- run: npm install
- run: npm run prepublish
20 changes: 4 additions & 16 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
scope: "@lensapp"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

notify:
needs: publish-npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm install -g @s3pweb/release-message-creator
- run: create-release-message -m "Publication de @s3pweb/keycloak-admin-client-cjs, version %s :" -w ${{secrets.DISCORD_WEBHOOK_LIBS}}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

15 changes: 0 additions & 15 deletions .versionrc

This file was deleted.

1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

Loading

0 comments on commit 5d4c851

Please sign in to comment.