Skip to content

Commit 38e370b

Browse files
committed
Chore: Fix npm building
1 parent e06f08c commit 38e370b

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
with:
2222
node-version: '16.x'
2323

24-
- name: Install dependencies
25-
run: npm ci
26-
27-
- name: Build app.js
28-
run: npm run build:ci
24+
# - name: Install dependencies
25+
# run: npm ci
26+
#
27+
# - name: Build app.js
28+
# run: npm run build:ci
2929

3030
- name: Build and Check Package
3131
uses: hynek/build-and-inspect-python-package@v1

.github/workflows/tests.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ jobs:
4646
with:
4747
node-version: '16.x'
4848

49-
- name: Install dependencies
50-
run: npm ci
51-
52-
- name: Build app.js
53-
run: npm run build:ci
49+
# - name: Install dependencies
50+
# run: npm ci
51+
#
52+
# - name: Build app.js
53+
# run: npm run build:ci
5454

5555
- name: Build and Check Package
5656
uses: hynek/build-and-inspect-python-package@v1
@@ -129,11 +129,11 @@ jobs:
129129
with:
130130
node-version: '16.x'
131131

132-
- name: Install dependencies
133-
run: npm ci
134-
135-
- name: Build app
136-
run: npm run build:ci
132+
# - name: Install dependencies
133+
# run: npm ci
134+
#
135+
# - name: Build app
136+
# run: npm run build:ci
137137

138138
- name: Set up python
139139
uses: actions/setup-python@v4
@@ -203,11 +203,11 @@ jobs:
203203
with:
204204
node-version: '16.x'
205205

206-
- name: Install dependencies
207-
run: npm ci
208-
209-
- name: Build app
210-
run: npm run build:ci
206+
# - name: Install dependencies
207+
# run: npm ci
208+
#
209+
# - name: Build app
210+
# run: npm run build:ci
211211

212212
- name: Set up python
213213
uses: actions/setup-python@v4

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"scripts": {
3-
"unit": "nyc mocha testing/**/unittest.js",
4-
"build:ci": "npm run build:css && npm run build:jsapp",
3+
"build": "npm run build:css && npm run build:jsapp",
54
"build:css": "sass --no-source-map --no-error-css src/layout/css/style.scss src/pytest_html/resources/style.css",
65
"build:jsapp": "browserify ./src/pytest_html/scripts/index.js > ./src/pytest_html/resources/app.js",
7-
"build": "npm run unit && npm run build:css && npm run build:jsapp",
8-
"lint": "eslint src/pytest_html/scripts/ testing/"
6+
"lint": "eslint src/pytest_html/scripts/ testing/",
7+
"unit": "nyc mocha testing/**/unittest.js",
8+
"all": "npm run lint && npm run unit && npm run build:css && npm run build:jsapp"
99
},
1010
"devDependencies": {
1111
"browserify": "^17.0.0",

scripts/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
class NpmBuildHook(BuildHookInterface):
77
def initialize(self, version, build_data):
8-
subprocess.check_output("npm install", shell=True)
8+
subprocess.check_output("npm ci", shell=True)
99
subprocess.check_output("npm run build", shell=True)

0 commit comments

Comments
 (0)