Skip to content

Commit ce0b478

Browse files
committed
ci: removed unused commands, cleaned up version and release commands
1 parent 2c63c78 commit ce0b478

File tree

13 files changed

+21
-70
lines changed

13 files changed

+21
-70
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
node-version: 24
2222
cache: npm
23-
- run: npm i
23+
- run: npm ci
2424
- run: npm run build:ci
2525
- uses: codecov/codecov-action@v5
2626
with:
@@ -59,7 +59,7 @@ jobs:
5959
node-version: 24
6060
cache: npm
6161
- name: Install dependencies
62-
run: npm i
62+
run: npm ci
6363
- name: Deploy job
6464
run: npm run deploy
6565
- name: Upload artifact
@@ -85,10 +85,8 @@ jobs:
8585
with:
8686
node-version: 24
8787
cache: npm
88-
- name: Update npm
89-
run: npm update -g npm
9088
- name: Install dependencies
91-
run: npm i
89+
run: npm ci
9290
- name: Release
9391
id: changesets
9492
uses: changesets/action@v1
@@ -102,4 +100,3 @@ jobs:
102100
# Disable husky
103101
HUSKY: 0
104102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105-
NPM_TOKEN: ''

.github/workflows/percy.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
node-version: 'lts/*'
5050

5151
- name: Install dependencies
52-
run: npm i
52+
run: npm ci
5353

5454
- name: Detect changed components
5555
id: detect
@@ -58,9 +58,6 @@ jobs:
5858
sass-dir: 'packages/skin/src/sass'
5959
base-branch: 'main'
6060

61-
- name: Copy Storybook assets
62-
run: npm run copy:assetsToStorybook -w packages/skin
63-
6461
- name: Run Percy (Partial)
6562
if: steps.detect.outputs.components != '' && steps.detect.outputs.components != 'all'
6663
env:
@@ -89,7 +86,7 @@ jobs:
8986
node-version: 'lts/*'
9087

9188
- name: Install dependencies
92-
run: npm i
89+
run: npm ci
9390

9491
- name: Run Percy (All - Auto-approve)
9592
env:

package-lock.json

Lines changed: 2 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"packages/*"
1111
],
1212
"scripts": {
13-
"build": "npm run lint && mtc && npm run build -w packages/skin && npm run build -w packages/ebayui-core && npm run build -w packages/evo-marko && npm run build -w packages/ebayui-core-react",
14-
"build:ci": "CI=true npm run build -w packages/skin && npm run build -w packages/ebayui-core && npm run build -w packages/evo-marko && npm run build -w packages/ebayui-core-react && npm run build -w packages/evo-react",
13+
"build": "npm run lint && mtc && npm run build -w packages/skin && npm run build -w packages/ebayui-core -w packages/evo-marko -w packages/ebayui-core-react",
14+
"build:ci": "CI=true npm run build -w packages/skin && npm run build -w packages/ebayui-core -w packages/evo-marko -w packages/ebayui-core-react -w packages/evo-react",
1515
"change": "changeset add",
1616
"copy:coreui-site": "npm run deploy --ws",
1717
"copy:skin-site": "npm run deploy --ws",
@@ -21,11 +21,11 @@
2121
"postinstall": "npx playwright install --with-deps chromium",
2222
"lint": "stylelint src --config .stylelintrc",
2323
"prepare": "husky",
24-
"release": "npm run release --ws && changeset publish",
24+
"release": "npm run release --ws --if-present && changeset publish",
2525
"start": "marko-run",
2626
"test": "npm run test --ws",
2727
"update-snapshots": "npm run update-snapshots --ws --if-present",
28-
"version": "npm run version --ws && changeset version && npm i --package-lock-only && git add -A packages"
28+
"version": "npm run version --ws --if-present && changeset version && npm i --package-lock-only && git add -A packages"
2929
},
3030
"commitlint": {
3131
"extends": "@commitlint/config-conventional"

0 commit comments

Comments
 (0)