Skip to content

Commit cbd7d03

Browse files
committed
chore: migrate scripts
1 parent c700cb3 commit cbd7d03

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

.github/workflows/pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
github-token: ${{ secrets.GITHUB_TOKEN }}
6666
script: |
67-
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message')
67+
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
6868
6969
await setMessage({
7070
header: "## :package: NPM canary release",
@@ -158,7 +158,7 @@ jobs:
158158
with:
159159
github-token: ${{ secrets.GITHUB_TOKEN }}
160160
script: |
161-
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message')
161+
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
162162
163163
await setMessage({
164164
header: "## 🧪 Storybook is successfully deployed!",
@@ -224,7 +224,7 @@ jobs:
224224
with:
225225
github-token: ${{ secrets.GITHUB_TOKEN }}
226226
script: |
227-
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message')
227+
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
228228
229229
await setMessage({
230230
header: "## 🏗 Docs are successfully deployed!",

.github/workflows/size-limit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Measure size
5555
id: measure_size
5656
continue-on-error: true
57-
run: BASELINE='./__compare/${{ env.REPORT_FOLDER }}/output.json' node ./scripts/ci/measure-size.mjs
57+
run: BASELINE='./__compare/${{ env.REPORT_FOLDER }}/output.json' node ./scripts/ci/measure-size.cjs
5858

5959
- name: Save stats
6060
run: echo '${{ steps.measure_size.outputs.result }}' > ./size-limit-report/output.json
@@ -87,7 +87,7 @@ jobs:
8787
with:
8888
github-token: ${{ secrets.GITHUB_TOKEN }}
8989
script: |
90-
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message')
90+
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
9191
9292
await setMessage({
9393
header: "## 🏋️ Size limit report",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"scripts": {
2222
"start": "pnpm storybook",
23-
"build": "npm-run-all clear:dist -p build:* && node scripts/copy-files.js && node scripts/add-banner.js && node scripts/replace-version.js",
23+
"build": "npm-run-all clear:dist -p build:* && node scripts/copy-files.cjs && node scripts/add-banner.cjs && node scripts/replace-version.cjs",
2424
"build:esm": "tsc -p tsconfig.es.json",
2525
"watch": "pnpm build:esm --watch",
2626
"test": "jest",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)