Compare commits
1
Commits
5bb659f76c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f518e78a5 |
+33
@@ -1,5 +1,7 @@
|
||||
name: "Project Manager"
|
||||
|
||||
inputs:
|
||||
# python
|
||||
python-version:
|
||||
default: "3.14"
|
||||
setup-python:
|
||||
@@ -7,6 +9,19 @@ inputs:
|
||||
required: false
|
||||
venv-version:
|
||||
default: "1"
|
||||
# nodejs
|
||||
nodejs-version:
|
||||
default: "24.x"
|
||||
setup-nodejs:
|
||||
type: boolean
|
||||
required: false
|
||||
node_modules-version:
|
||||
default: "1"
|
||||
|
||||
env:
|
||||
NPM_CONFIG_AUDIT: false
|
||||
NPM_CONFIG_FUND: false
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -23,6 +38,7 @@ runs:
|
||||
|
||||
- run: pm setup:config -i -vv
|
||||
|
||||
# setup python
|
||||
- if: inputs.setup-python
|
||||
run: pip install poetry
|
||||
|
||||
@@ -35,3 +51,20 @@ runs:
|
||||
|
||||
- if: ${{ inputs.setup-python && steps.cache-venv.outputs.cache-hit != 'true' }}
|
||||
run: pm setup:python -vv
|
||||
|
||||
# setup nodejs
|
||||
- if: inputs.setup-nodejs
|
||||
uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.nodejs-version }}
|
||||
cache: "npm"
|
||||
|
||||
- id: cache-node_modules
|
||||
if: inputs.setup-nodejs
|
||||
uses: actions/cache@v6
|
||||
with:
|
||||
path: node_modules
|
||||
key: node_modules-${{ runner.os }}-nodejs-${{ inputs.nodejs-version }}-${{ hashFiles('**/package-lock.json') }}-v${{ inputs.node_modules-version }}
|
||||
|
||||
- if: ${{ inputs.setup-nodejs && steps.cache-node_modules.outputs.cache-hit != 'true' }}
|
||||
run: pm setup:nodejs -vv
|
||||
|
||||
Reference in New Issue
Block a user