File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1717 required : false
1818 type : string
1919 default : ' ["3.x"]'
20+ uses-secrets :
21+ type : boolean
22+ default : false
2023 secrets :
2124 node-auth-token :
2225 required : false
3639 steps :
3740 - uses : actions/checkout@v2
3841 - uses : actions/setup-node@v2
42+ if : ${{ inputs.uses-secrets }}}
3943 with :
4044 node-version : " 14.x"
4145 registry-url : " https://registry.npmjs.org"
46+ - uses : actions/setup-node@v2
47+ if : ${{ inputs.uses-secrets }}}
48+ with :
49+ node-version : " 14.x"
4250 - name : Pin NPM Version
4351 run :
npm install -g [email protected] 4452 - name : Use Python ${{ matrix.python-version }}
Original file line number Diff line number Diff line change 1313 with :
1414 job-name : " publish"
1515 hatch-run : " publish"
16+ uses-secrets : true
1617 secrets :
1718 node-auth-token : ${{ secrets.NODE_AUTH_TOKEN }}
1819 pypi-username : ${{ secrets.PYPI_USERNAME }}
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" hatchling" , " hatch-build-scripts>=0.0.3 " ]
2+ requires = [" hatchling" , " hatch-build-scripts>=0.0.4 " ]
33build-backend = " hatchling.build"
44
55# --- Project --------------------------------------------------------------------------
@@ -76,7 +76,7 @@ path = "reactpy/__init__.py"
7676
7777[tool .hatch .envs .default ]
7878features = [" all" ]
79- pre-install-command = " hatch run build --hooks-only"
79+ pre-install-command = " hatch build --hooks-only"
8080dependencies = [
8181 " coverage[toml]>=6.5" ,
8282 " pytest" ,
@@ -125,7 +125,7 @@ all = ["types"]
125125work_dir = " ../../js"
126126out_dir = " reactpy/_static"
127127commands = [
128- " npm install " ,
128+ " npm ci " ,
129129 " npm run build"
130130]
131131artifacts = [
You can’t perform that action at this time.
0 commit comments