Skip to content

Commit fb08570

Browse files
committed
try to fix npm
1 parent b153430 commit fb08570

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: .github/workflows/.hatch-run.yml

+5
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,14 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v2
3838
- uses: actions/setup-node@v2
39+
if: ${{ secrets.node-auth-token != '' }}}
3940
with:
4041
node-version: "14.x"
4142
registry-url: "https://registry.npmjs.org"
43+
- uses: actions/setup-node@v2
44+
if: ${{ secrets.node-auth-token == '' }}}
45+
with:
46+
node-version: "14.x"
4247
- name: Pin NPM Version
4348
run: npm install -g [email protected]
4449
- name: Use Python ${{ matrix.python-version }}

Diff for: src/py/reactpy/pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["hatchling", "hatch-build-scripts>=0.0.3"]
2+
requires = ["hatchling", "hatch-build-scripts>=0.0.4"]
33
build-backend = "hatchling.build"
44

55
# --- Project --------------------------------------------------------------------------
@@ -76,7 +76,7 @@ path = "reactpy/__init__.py"
7676

7777
[tool.hatch.envs.default]
7878
features = ["all"]
79-
pre-install-command = "hatch run build --hooks-only"
79+
pre-install-command = "hatch build --hooks-only"
8080
dependencies = [
8181
"coverage[toml]>=6.5",
8282
"pytest",
@@ -125,7 +125,7 @@ all = ["types"]
125125
work_dir = "../../js"
126126
out_dir = "reactpy/_static"
127127
commands = [
128-
"npm install",
128+
"npm ci",
129129
"npm run build"
130130
]
131131
artifacts = [

0 commit comments

Comments
 (0)