Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/uzh-bf/design-system into St…
Browse files Browse the repository at this point in the history
…encilJSComponents

# Conflicts:
#	package-lock.json
  • Loading branch information
rschlaefli committed Nov 26, 2024
2 parents 594fadc + 430f1a6 commit 3eb00f3
Show file tree
Hide file tree
Showing 297 changed files with 32,327 additions and 2,313 deletions.
73 changes: 42 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
- uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: true

- run: npm run lint
- run: pnpm run lint

check-ts:
runs-on: ubuntu-latest
Expand All @@ -25,32 +27,36 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
- uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: true

- run: npm run check
- run: pnpm run check

check-format:
runs-on: ubuntu-latest
name: Test
name: Check Formatting
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
- uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: true

- run: npm run format:check
- run: pnpm run format:check

test:
runs-on: ubuntu-latest
Expand All @@ -59,46 +65,51 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
- uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: true

- run: npm run test --ci --coverage --maxWorkers=2
- run: pnpm run test -- --ci --coverage --maxWorkers=2

build:
name: Build and Publish
runs-on: ubuntu-latest
needs: [lint, check-ts, check-format, test]
needs: [check-ts, test]
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
- uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: true

- name: Build
run: npm run build
working-directory: packages/design-system
run: pnpm run build

- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
check-version: true
package: packages/design-system/package.json
if: startsWith(github.ref, 'refs/tags/')

- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
access: public
check-version: true
package: packages/design-system/package.json
if: startsWith(github.ref, 'refs/tags/')
11 changes: 11 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ jobs:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3

- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 20.x

- uses: pnpm/action-setup@v4
with:
version: 9.7.0
run_install: true

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
58 changes: 58 additions & 0 deletions .syncpackrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// @ts-check

/** @type {import("syncpack").RcFile} */
const config = {
customTypes: {},
dependencyTypes: [
'dev',
'local',
'overrides',
'peer',
'pnpmOverrides',
'prod',
'resolutions',
],
filter: '.',
indent: ' ',
semverGroups: [],
sortAz: [
'dependencies',
'devDependencies',
'peerDependencies',
'resolutions',
'scripts',
],
sortFirst: [
'private',
'name',
'description',
'version',
'repository',
'homepage',
'bugs',
'license',
'main',
'types',
'files',
'maintainers',
'contributors',
'dependencies',
'devDependencies',
'peerDependencies',
'scripts',
'resolutions',
'engines',
'volta',
'packageManager',
],
source: [
'package.json',
'apps/*/package.json',
'packages/*/package.json',
'cypress/package.json',
'docs/package.json',
],
versionGroups: [],
}

module.exports = config
83 changes: 72 additions & 11 deletions .versionrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,82 @@
const { VersionConfigTypes } = require('./packages/design-system/src/constants')

module.exports = {
types: VersionConfigTypes,
packageFiles: [
types: [
{
filename: `package.json`,
type: 'json',
type: 'feat',
section: 'Features',
},
],
bumpFiles: [
{
filename: `package.json`,
type: 'json',
type: 'enhance',
section: 'Enhancements',
},
{
type: 'fix',
section: 'Bug Fixes',
},
{
type: 'docs',
section: 'Documentation',
},
{
type: 'refactor',
section: 'Refactors',
},
{
type: 'perf',
section: 'Performance',
},
{
type: 'deploy',
section: 'Deployment',
},
{
type: 'deps',
section: 'Dependencies',
},
{
type: 'build',
section: 'Build and CI',
},
{
type: 'ci',
section: 'Build and CI',
},
{
type: 'chore',
section: 'Other',
},
{
type: 'wip',
section: 'Other',
},
{
filename: `package-lock.json`,
type: 'test',
section: 'Other',
},
{
type: 'style',
section: 'Other',
},
],
packageFiles: [
{
filename: `package.json`,
type: 'json',
},
],
bumpFiles: [
'',
'packages/design-system/',
'packages/header-custom-element/',
'packages/header-react/',
'packages/tag-custom-element/',
'packages/tag-react/',
'packages/parcel-config-design-system/',
'packages/parcel-resolver-preact/',
'packages/tailwind-config-design-system/',
].reduce((acc, path) => {
return acc.concat({
filename: `${path}package.json`,
type: 'json',
})
}, []),
}
Loading

0 comments on commit 3eb00f3

Please sign in to comment.