88 description : Install asdf and plugins if true
99 required : false
1010 type : boolean
11+ node-version :
12+ default : ' 18.16.0'
13+ description : Node runtime version
14+ required : false
15+ type : string
1116 python-version :
12- default : ' 3.8 '
17+ default : ' 3.10 '
1318 description : Python runtime version
1419 required : false
1520 type : string
@@ -25,32 +30,36 @@ jobs:
2530 release :
2631 runs-on : ubuntu-latest
2732 steps :
28- - uses : actions/checkout@v2
29- with :
30- fetch-depth : 0
31- token : ${{ secrets.token }}
32- - name : Install asdf
33- uses : asdf-vm/actions/setup@v1
34- if : inputs.asdf
35- - name : Install asdf plugins
36- if : inputs.asdf
37- run : make asdf
38- - uses : actions/setup-python@v2
39- with :
40- python-version : ${{ inputs.python-version }}
41- - name : Install machine user SSH key
42- env :
43- SSH_KEY : ${{ secrets.ssh-key }}
44- if : env.SSH_KEY != null
45- uses : webfactory/ssh-agent@v0.5.2
46- with :
47- ssh-private-key : |
48- ${{ secrets.ssh-key }}
49- - name : Run semantic-release
50- env :
51- GH_TOKEN : ${{ secrets.token }}
52- run : |
53- pip install python-semantic-release poetry
54- git config --global user.name "github-actions"
55- git config --global user.email "action@github.com"
56- semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
33+ - name : Set up Node ${{ inputs.node-version }}
34+ uses : actions/setup-node@v3.6.0
35+ with :
36+ node-version : ${{ inputs.node-version }}
37+ - uses : actions/setup-python@v4.6.0
38+ with :
39+ python-version : ${{ inputs.python-version }}
40+ - uses : actions/checkout@v3.5.2
41+ with :
42+ fetch-depth : 0
43+ token : ${{ secrets.token }}
44+ - name : Install asdf
45+ uses : asdf-vm/actions/setup@v2.1.0
46+ if : inputs.asdf
47+ - name : Install asdf plugins
48+ if : inputs.asdf
49+ run : make asdf
50+ - name : Install machine user SSH key
51+ env :
52+ SSH_KEY : ${{ secrets.ssh-key }}
53+ if : env.SSH_KEY != null
54+ uses : webfactory/ssh-agent@v0.8.0
55+ with :
56+ ssh-private-key : |
57+ ${{ secrets.ssh-key }}
58+ - name : Run semantic-release
59+ env :
60+ GH_TOKEN : ${{ secrets.token }}
61+ run : |
62+ pip install poetry python-semantic-release==7.33.3
63+ git config --global user.name "github-actions"
64+ git config --global user.email "action@github.com"
65+ semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"
0 commit comments