Skip to content

Commit

Permalink
Update to version 0.1.0 (#22)
Browse files Browse the repository at this point in the history
* Create angular and react package (#1)

* Open version 0.1.0 
---------

Signed-off-by: capyq <[email protected]>
  • Loading branch information
capyq authored Dec 16, 2024
1 parent a449e18 commit 93d775c
Show file tree
Hide file tree
Showing 533 changed files with 54,043 additions and 3,419 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package react

on:
push:
branches:
- main
- 'releases/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- working-directory: packages/rte-design-system-react
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- working-directory: packages/rte-design-system-react
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ dist
dist-ssr
*.local

# Project lib generated
packages/rte-design-system-angular/*

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const CONSOLE_RED_COLOR = '\x1b[31m%s\x1b[0m';

// Check if branch matches naming convention
const localBranch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim();
const regex = /^master|main|(core|feature|fix|test)\/.*/;
const regex = /^develop|main|(chore|feature|fix|test)\/.*/;

if (!regex.test(localBranch)) {
console.error(CONSOLE_RED_COLOR, 'The branche name must respect the convention: (core|feature|fix|test)/<branch-name>');
console.error(CONSOLE_RED_COLOR, 'The branche name must respect the convention: (chore|feature|fix|test)/<branch-name>');
console.error(`Branch name => ${localBranch}`);
process.exit(1);
}
Expand Down
Loading

0 comments on commit 93d775c

Please sign in to comment.