Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/rbe-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
jobs:
testing:
if: ${{github.event.pull_request.draft == false && !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/test.yaml@v2
uses: iwsllc/workflows/.github/workflows/test.yaml@v7
with:
registry-url: 'https://registry.npmjs.org'
scope: '@iwsio'
use-pnpm: true
cache: pnpm
node-version-file: '.nvmrc'
cache: npm
install-command: npm ci
test-command: npm run test -w packages/fetch
install-command: pnpm install
test-command: pnpm -F react-blog-examples test
40 changes: 26 additions & 14 deletions .github/workflows/rbe-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,53 @@ on:
push:
branches: [ main ]

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
tests:
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/test.yaml@v2
uses: iwsllc/workflows/.github/workflows/test.yaml@v7
with:
registry-url: 'https://registry.npmjs.org'
scope: '@iwsio'
cache: npm
cache: pnpm
use-pnpm: true
node-version-file: '.nvmrc'
install-command: npm ci
test-command: npm run test -w package
install-command: pnpm install
test-command: pnpm -F react-blog-examples test
version:
needs: tests
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/version.yaml@v2
concurrency:
group: 'versioning-automation'
cancel-in-progress: false
uses: iwsllc/workflows/.github/workflows/version-as-app.yaml@v7
with:
ref: main
registry-url: 'https://registry.npmjs.org'
use-pnpm: true
cache: pnpm
node-version-file: '.nvmrc'
cache: npm
scope: '@iwsio'
version-command: npm version patch -ws --include-workspace-root
tag-includes-name: false
version-command: pnpm -w -r version patch
secrets:
IWS_VERSION_BOT_PK: ${{ secrets.IWS_VERSION_BOT_PK}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
needs: version
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/publish.yaml@v2
uses: iwsllc/workflows/.github/workflows/publish.yaml@v7
with:
ref: main
registry-url: 'https://registry.npmjs.org'
cache: npm
cache: pnpm
use-pnpm: true
node-version-file: '.nvmrc'
skip-node-auth: true
scope: '@iwsio'
install-command: npm ci
build-command: npm run build -w package
publish-command: npm publish -w package --access public
install-command: pnpm install
build-command: pnpm -F react-blog-examples build
publish-command: pnpm -F react-blog-examples publish --access public
secrets:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38 changes: 20 additions & 18 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
{
"name": "@iwsio/react-blog-examples-demo",
"name": "demo",
"version": "4.0.4",
"private": true,
"devDependencies": {
"@iwsio/react-blog-examples": "workspace:*",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.16",
"@tailwindcss/vite": "^4.3.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.9.2",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.1.0",
"@types/node": "^25.9.1",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"classnames": "^2.5.1",
"jsdom": "^27.0.1",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router": "^7.9.5",
"rimraf": "^6.0.1",
"tailwindcss": "^4.0.6",
"ts-loader": "^9.5.4",
"typescript": "^5.9.3",
"vite": "^7.1.12",
"vitest": "^4.0.5",
"web-vitals": "^5.1.0"
"jsdom": "^29.1.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"react-router": "^7.15.1",
"rimraf": "^6.1.3",
"tailwindcss": "^4.3.0",
"ts-loader": "^9.5.7",
"typescript": "^6.0.3",
"vite": "^8.0.13",
"vitest": "^4.1.7",
"web-vitals": "^5.2.0"
},
"type": "module",
"scripts": {
"start": "VITE_GITHUB_SHA=`git rev-parse HEAD` vite dev",
"build": "tsc --build",
"lint": "eslint src",
"test": "VITEST_SEGFAULT_RETRY=3 vitest --run --passWithNoTests"
},
Expand Down
7 changes: 0 additions & 7 deletions demo/tsconfig.build.json

This file was deleted.

13 changes: 6 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { configure } from '@iwsio/eslint-config'
import { fileURLToPath } from 'node:url'

// package names of packages in this monorepo
const monoRepoPackages = []
import { configure } from '@iwsio/eslint-config'
const __dirname = fileURLToPath(new URL('.', import.meta.url))

// paths of node projects in this monorepo
const monoRepoNodeProjects = []
const excludeWorkspacesFromNodeRules = ['package', 'demo'] // meant for browser only or not Node related.

// NOTE: default style linter is stylistic with tabs.
export default configure({ monoRepoPackages, monoRepoNodeProjects })
const configs = await configure({ autoFindMonorepoPackages: true, rootDir: __dirname, excludeWorkspacesFromNodeRules })
export default configs
Loading