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

Radiogroup #3

Open
wants to merge 59 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f25a9ac
autodeploy examples on gh-pages
jerem1508 Feb 13, 2024
3eb67b1
0.0.4
jerem1508 Feb 13, 2024
ab33d83
fix gh-actions
jerem1508 Feb 13, 2024
106b3dd
0.0.5
jerem1508 Feb 13, 2024
52c6074
Merge branch 'staging'
annelhote Feb 14, 2024
12d38ee
Merge branch 'staging'
Mihoub2 Feb 14, 2024
09d5d07
0.0.8
Mihoub2 Feb 14, 2024
0c7a8eb
Merge branch 'staging'
Mihoub2 Feb 14, 2024
24e168c
0.0.9
Mihoub2 Feb 14, 2024
344281b
fix(ci/cd): Clean mattermost messages
annelhote Feb 14, 2024
c29a8d2
fix(components): Fix exports using index.ts file
folland87 Feb 15, 2024
943d955
Merge branch 'staging'
folland87 Feb 15, 2024
f9f741a
0.0.10
folland87 Feb 15, 2024
2510425
fix(workflow): Add the main workflow correctly in staging
folland87 Feb 15, 2024
29e21ad
Merge branch 'staging'
folland87 Feb 15, 2024
c3722cd
fix(workflow): delete second example deployment
folland87 Feb 15, 2024
1937b42
fix(workflow): add a workflow on main
folland87 Feb 15, 2024
bcda9ae
fix(workflow): add a workflow on main
folland87 Feb 15, 2024
44b76b6
fix(workflow): add a workflow on main
folland87 Feb 15, 2024
6776fc3
feat(workflow): Add a release after publishing on npm
folland87 Feb 15, 2024
1a8aadc
fix(workflow): set changelog.js export as js modules
folland87 Feb 15, 2024
650d238
fix(workflow): set changelog.js export as js modules /2
folland87 Feb 15, 2024
7aba65c
ci(workflow): set changelog.cjs
folland87 Feb 15, 2024
594c864
fix(autocomplete): href is now optional
folland87 Feb 16, 2024
43c6324
feat(Header): add autocomplete to hearer
folland87 Feb 23, 2024
7eb8002
fix dropdown size
folland87 Feb 23, 2024
432d547
fix left padding in modal content
jerem1508 Feb 27, 2024
95e9bea
fix(modal): Delete console.log
annelhote Mar 1, 2024
6ee032b
refactor(modal): Remove unused const
annelhote Mar 1, 2024
4e87140
fix(tag): Update description
annelhote Mar 8, 2024
b3b6881
refactor(all): Clean code
annelhote Mar 8, 2024
98c81fa
refactor(all): Clean code /2
annelhote Mar 8, 2024
aad5c80
chore(examples): Rename lib from "react-dsfr" to "dsfr-plus"
annelhote Mar 11, 2024
c33bdce
fix(examples): Update dsfr-plus lib
annelhote Mar 11, 2024
05167fa
chore: Clean code
annelhote Mar 11, 2024
3332f3e
feat(toaster): Create Toaster component
annelhote Mar 14, 2024
af5e34d
fix(ci/cd): Correct toaster examples
annelhote Mar 14, 2024
071b860
chore(code): Clean code
annelhote Mar 14, 2024
1ce42fe
add checked props for initialize default value
jerem1508 Mar 15, 2024
729b2f4
fix(toast): Display JS code in example
annelhote Mar 18, 2024
92b2480
0.0.11
folland87 Feb 15, 2024
a7c725f
0.0.12
folland87 Feb 15, 2024
33719b8
0.0.13
folland87 Feb 15, 2024
ef830b7
0.0.14
folland87 Feb 15, 2024
94fc485
0.0.15
folland87 Feb 15, 2024
567d380
0.0.16
folland87 Feb 15, 2024
d60342a
0.0.17
folland87 Feb 15, 2024
a7946e4
0.0.18
folland87 Feb 16, 2024
a80f4c3
0.0.19
folland87 Feb 23, 2024
097039c
0.0.20
folland87 Feb 23, 2024
aabf86e
0.0.21
jerem1508 Feb 27, 2024
11b9339
0.0.22
annelhote Mar 11, 2024
b624300
0.0.23
annelhote Mar 14, 2024
ff883af
0.0.24
annelhote Mar 14, 2024
9180fd7
0.1.0
jerem1508 Mar 15, 2024
72e95ed
fix(toast): Correct toast icon
annelhote Mar 18, 2024
3ac19e7
0.1.1
annelhote Mar 18, 2024
288a72b
ajout du groupe de boutons radios
jerem1508 Mar 21, 2024
bc3e028
review fix
jerem1508 Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ module.exports = {
{ types: ['other'], label: 'Autres changements' },
],

excludeTypes: ['other', 'perf', 'test', 'tests', 'style', 'chore', 'doc', 'docs'],
excludeTypes: ['other', 'perf', 'test', 'tests', 'style', 'chore', 'build', 'ci'],
};
54 changes: 36 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,55 @@
name: Publish package to Npmjs and notify on Mattermost
name: Publish documentation on github pages and notify on Mattermost

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- main

env:
DEPLOYMENT_URL: https://datasupr.staging.dataesr.ovh
MM_NOTIFICATION_CHANNEL: "bots"
DEPLOYMENT_URL: https://dataesr.github.io/dsfr-plus/
MM_NOTIFICATION_CHANNEL: bots

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
publish:
deploy-examples:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies and Build
run: npm ci --silent && npm run build && cd ./example-ts && npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
scope: "@dataesr"
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Upload build repository
path: './example-ts/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4


notify:
needs: publish
needs:
- deploy-examples
if: always()
runs-on: ubuntu-latest
steps:
Expand Down
47 changes: 7 additions & 40 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,24 @@
name: Deploy on Github Pages
name: Build test for staging push

on:
push:
branches:
- staging
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
DEPLOYMENT_URL: https://datasupr.staging.dataesr.ovh
MM_NOTIFICATION_CHANNEL: 'bots'

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
MM_NOTIFICATION_CHANNEL: bots

jobs:
deploy-examples:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies and Build
run: npm ci --silent && npm run build && cd ./example-ts && npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload build repository
path: './example-ts/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build


notify:
needs: deploy-examples
needs: build-test
if: always()
runs-on: ubuntu-latest
steps:
Expand All @@ -59,4 +27,3 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN}}
mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
mattermost_channel: ${{ env.MM_NOTIFICATION_CHANNEL}}
deployment_url: ${{ env.DEPLOYMENT_URL }}
71 changes: 71 additions & 0 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Publish package to Npmjs and notify on Mattermost

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

env:
DEPLOYMENT_URL: https://www.npmjs.com/package/@dataesr/dsfr-plus
MM_NOTIFICATION_CHANNEL: bots

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
scope: "@dataesr"
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

release:
name: Create new Github release
runs-on: ubuntu-latest
needs: publish
steps:
- name: 🏁 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🏷️ Get tag
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/config/changelog.cjs

- name: 📦 Create release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.tag.outputs.tag }}
body: ${{ steps.changelog.outputs.changes }}

notify:
needs:
- publish
- release
if: always()
runs-on: ubuntu-latest
steps:
- uses: dataesr/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
mattermost_channel: ${{ env.MM_NOTIFICATION_CHANNEL}}
deployment_url: ${{ env.DEPLOYMENT_URL }}
Loading