File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 17
17
required : false
18
18
type : string
19
19
default : ' ["3.x"]'
20
+ uses-secrets :
21
+ type : boolean
22
+ default : false
20
23
secrets :
21
24
node-auth-token :
22
25
required : false
36
39
steps :
37
40
- uses : actions/checkout@v2
38
41
- uses : actions/setup-node@v2
42
+ if : ${{ inputs.uses-secrets }}}
39
43
with :
40
44
node-version : " 14.x"
41
45
registry-url : " https://registry.npmjs.org"
46
+ - uses : actions/setup-node@v2
47
+ if : ${{ inputs.uses-secrets }}}
48
+ with :
49
+ node-version : " 14.x"
42
50
- name : Pin NPM Version
43
51
run : npm install -g npm@8.19.3
44
52
- name : Use Python ${{ matrix.python-version }}
Original file line number Diff line number Diff line change 13
13
with :
14
14
job-name : " publish"
15
15
hatch-run : " publish"
16
+ uses-secrets : true
16
17
secrets :
17
18
node-auth-token : ${{ secrets.NODE_AUTH_TOKEN }}
18
19
pypi-username : ${{ secrets.PYPI_USERNAME }}
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" hatchling" , " hatch-build-scripts>=0.0.3 " ]
2
+ requires = [" hatchling" , " hatch-build-scripts>=0.0.4 " ]
3
3
build-backend = " hatchling.build"
4
4
5
5
# --- Project --------------------------------------------------------------------------
@@ -76,7 +76,7 @@ path = "reactpy/__init__.py"
76
76
77
77
[tool .hatch .envs .default ]
78
78
features = [" all" ]
79
- pre-install-command = " hatch run build --hooks-only"
79
+ pre-install-command = " hatch build --hooks-only"
80
80
dependencies = [
81
81
" coverage[toml]>=6.5" ,
82
82
" pytest" ,
@@ -125,7 +125,7 @@ all = ["types"]
125
125
work_dir = " ../../js"
126
126
out_dir = " reactpy/_static"
127
127
commands = [
128
- " npm install " ,
128
+ " npm ci " ,
129
129
" npm run build"
130
130
]
131
131
artifacts = [
You can’t perform that action at this time.
0 commit comments