File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,18 +15,41 @@ jobs:
1515 uses : actions/setup-node@v1
1616 with :
1717 node-version : 16
18+
1819 - name : Check for update
1920 id : updatecheck
2021 uses : EndBug/version-check@v2
2122 with :
2223 diff-search : true
24+
2325 - name : Stop process if no release
2426 if : steps.updatecheck.outputs.changed == 'false'
2527 uses : andymckay/cancel-action@0.3
28+
29+
30+ create-release :
31+ needs : check-update
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v2
36+
37+ - name : Get version
38+ run : echo "version=$(jq -r .version package.json)" >> $GITHUB_ENV
2639
40+ - name : Create Release
41+ id : create_release
42+ uses : actions/create-release@v1
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ with :
46+ tag_name : ${{ env.version }}
47+ release_name : release ${{ env.version }}
48+ draft : false
49+ prerelease : ${{ contains(env.version, 'beta') || contains(env.version, 'alpha') }}
2750
28- release :
29- needs : [check-update]
51+ build-launcher :
52+ needs : create-release
3053 runs-on : ${{ matrix.os }}
3154
3255 strategy :
@@ -38,12 +61,12 @@ jobs:
3861 uses : actions/checkout@v1
3962
4063 - name : Set up Node
41- uses : actions/setup-node@v1
64+ uses : actions/setup-node@v3
4265 with :
43- node-version : 16
66+ node-version : 18.x
4467
4568 - name : Set up Python
46- uses : actions/setup-python@v2
69+ uses : actions/setup-python@v4
4770 with :
4871 python-version : 3.x
4972
5578 env :
5679 GH_TOKEN : ${{ secrets.github_token }}
5780 run : npm run build
58- shell : bash
81+ shell : bash
You can’t perform that action at this time.
0 commit comments