Skip to content

Commit ac55f4e

Browse files
committed
use same commands as build to run tests
1 parent 94dd5be commit ac55f4e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,13 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: 24
19+
cache: 'npm'
1920

20-
- name: Install dependencies
21-
run: npm ci
22-
23-
- name: Install Playwright
24-
uses: microsoft/playwright-github-action@v1
25-
21+
- run: npm ci
2622
- name: Install Playwright Browsers
27-
run: npx playwright install --with-deps
28-
29-
- name: Run tests
30-
run: npm test
23+
run: npx playwright install --with-deps chromium
24+
- run: npm run build --if-present
25+
- run: npm test
3126

3227
publish-npm:
3328
needs: build

0 commit comments

Comments
 (0)