Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to version 0.1.0 #22

Merged
merged 23 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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