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
1 change: 1 addition & 0 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
{
files: [
'**/*.stories.tsx',
'jest.config.mjs',
],
rules: {
'import/no-default-export': 'off',
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/branch-csr-example-validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -35,8 +35,7 @@ jobs:
run: npm ci

- name: Check dependency vulnerabilities
run: |-
npm audit --omit=dev
run: npm audit --omit=dev

validate:
runs-on: ubuntu-latest
Expand All @@ -47,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -74,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -101,7 +100,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/branch-next-csr-example-validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -35,8 +35,7 @@ jobs:
run: npm ci

- name: Check dependency vulnerabilities
run: |-
npm audit --omit=dev
run: npm audit --omit=dev

validate:
runs-on: ubuntu-latest
Expand All @@ -47,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -74,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -101,7 +100,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/branch-next-ssr-example-validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -35,8 +35,7 @@ jobs:
run: npm ci

- name: Check dependency vulnerabilities
run: |-
npm audit --omit=dev
run: npm audit --omit=dev

validate:
runs-on: ubuntu-latest
Expand All @@ -47,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -74,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -101,7 +100,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/branch-validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
node-version: 23
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -32,16 +35,15 @@ jobs:
run: npm ci

- name: Check dependency vulnerabilities
run: |-
npm audit --omit=dev
run: npm audit --omit=dev

validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -65,7 +67,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -89,7 +91,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/deploy-published-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -23,28 +23,24 @@ jobs:

- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |-
npm ci
rm -rf ~/.npmrc
run: npm ci

- name: Build package
run: npm run build

- name: Prepare release
run: |-
cp package.json LICENSE README.md build/
cp LICENSE README.md build/
cd build
find . -type f -path '*/*\.js.map' -exec sed -i -e "s~../src~src~" {} +
sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json
sed -i -e "s~\./build~.~" package.json
sed -i -e "s~./src~.~" package.json
cp -r ../src src

- name: Publish pre-release to NPM
if: ${{ github.event.release.prerelease }}
run: |-
cd build
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
npm publish --access public --tag next
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -53,7 +49,6 @@ jobs:
if: ${{ !github.event.release.prerelease }}
run: |-
cd build
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 3 additions & 6 deletions .github/workflows/publish-pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 23

- name: Cache dependencies
id: cache-dependencies
Expand All @@ -24,22 +24,19 @@ jobs:

- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |-
npm ci
rm -rf ~/.npmrc
run: npm ci

- name: Build package
run: npm run build

- name: Prepare release
run: |-
cp package.json LICENSE README.md build/
cp LICENSE README.md build/
cd build
find . -type f -path '*/*\.js.map' -exec sed -i -e "s~../src~src~" {} +
sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json
sed -i -e "s~\./build~.~" package.json
sed -i -e "s~./src~.~" package.json
cp -r ../src src

- name: Publish preview
run: |-
Expand Down
Loading