Skip to content

Commit

Permalink
Merge branch 'main' into 3396-update-to-node-22
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Dec 18, 2024
2 parents 00c28b7 + f47ace4 commit 783b472
Show file tree
Hide file tree
Showing 2,694 changed files with 10,584 additions and 8,738 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ echo "goto build-outputs"
cd build-outputs || exit 1

# TODO: Add other build as well
for PACKAGE in 'foundations' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
for PACKAGE in 'foundations' 'migration' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
echo "Start $PACKAGE bundle:"

echo "🆚 Update Version"
npm version --no-git-tag-version "$VALID_SEMVER_VERSION" --workspace=@db-ui/"$PACKAGE"

if [[ $PACKAGE != 'foundations' ]]; then
if [[ $PACKAGE != 'foundations' && $PACKAGE != 'migration' ]]; then
echo "🕵️‍ Set foundations dependency"
npm pkg set dependencies.@db-ui/foundations="$VALID_SEMVER_VERSION" --workspace=@db-ui/"$PACKAGE"
if [[ $PACKAGE != 'components' ]]; then
Expand Down Expand Up @@ -58,7 +58,7 @@ for REGISTRY in 'GITHUB' 'NPM'; do
fi

# TODO: Add other build as well
for PACKAGE in 'foundations' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
for PACKAGE in 'foundations' 'migration' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
echo "⤴ Publish $PACKAGE with tag $TAG to $REGISTRY"
# https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow
npm publish --tag "$TAG" db-ui-"$PACKAGE"-"$VALID_SEMVER_VERSION".tgz --provenance
Expand Down
37 changes: 0 additions & 37 deletions .github/scripts/release/index.js

This file was deleted.

42 changes: 0 additions & 42 deletions .github/scripts/release/upload-asset.js

This file was deleted.

11 changes: 0 additions & 11 deletions .github/scripts/release/zip-folder.js

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/01-build-outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
name: db-ui-components-build
path: packages/components/build

- name: ⏬ Download migration build
uses: actions/download-artifact@v4
with:
name: db-ui-migration-build
path: packages/migration/build

- name: ⏬ Download output
uses: actions/download-artifact@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/01-build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
name: db-ui-components-build
path: packages/components/build

- name: ⏫ Upload migration build
uses: actions/upload-artifact@v4
with:
name: db-ui-migration-build
path: packages/migration/build

- name: 💀 Killing me softly
uses: ./.github/actions/cancel-workflow
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/02-e2e-showcases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ jobs:
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.framework }}-showcase-achecker-results-${{ matrix.shardIndex }}
path: ./showcases/${{ matrix.framework }}-showcase/results
name: ${{ inputs.showcase }}-showcase-achecker-results-${{ matrix.shardIndex }}
path: ./showcases/${{ inputs.showcase }}-showcase/results
retention-days: 30
13 changes: 0 additions & 13 deletions .github/workflows/03-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,6 @@ jobs:
name: db-ui-outputs
path: build-outputs

- name: ⏫ Upload Release Assets
id: upload-release-asset
uses: actions/github-script@v7
env:
ICON_RELEASE_ID: ${{ vars.ICON_RELEASE_ID }}
with:
result-encoding: json
script: |
const { default: release } = await import('${{ github.workspace }}/.github/scripts/release/index.js');
const iconReleaseId = '${{ env.ICON_RELEASE_ID }}'
const workspace = '${{ github.workspace }}';
return await release({github, context, workspace, iconReleaseId})
- name: 📰 Publish to NPM Registries
run: |
chmod +rx ./.github/scripts/publish-npm.sh
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ showcases/patternhub/public/iframe-resizer/*
/packages/foundations/assets/icons/functional/fonts/**/*.svg
/packages/foundations/assets/icons/functional/fonts/**/*.ttf
/packages/foundations/assets/icons/functional/fonts/**/*.woff
/packages/foundations/assets/icons/functional/fonts/**/*.json

/output/stencil/.stencil
/output/stencil/loader
Expand Down
11 changes: 7 additions & 4 deletions .xo-config.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module.exports = {
prettier: true,
ignores: [
'./showcases/nuxt-showcase/**',
'./packages/foundations/scripts/**'
],
ignores: ['./showcases/nuxt-showcase/**', './packages/migration/**'],
overrides: [
{
files: ['./showcases/angular-showcase/**'],
Expand Down Expand Up @@ -43,6 +40,12 @@ module.exports = {
'import/no-extraneous-dependencies': 0 // foundation and component.css are inside this repo
}
},
{
files: ['./**/vite.config.ts'],
rules: {
'@typescript-eslint/no-unsafe-call': 0 // We don't need this tsc will handle it anyway
}
},
{
files: ['./showcases/e2e/**'],
rules: {
Expand Down
Loading

0 comments on commit 783b472

Please sign in to comment.