File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 fetch-depth : 0
2323
24+ # Fetch all branches and tags
25+ - name : Fetch all branches and tags
26+ run : git fetch --all
27+
28+ - name : Checkout main branch
29+ run : git checkout main
30+
31+ # ---------------------------------------------
32+ # ----- setup deps -----
33+ # ---------------------------------------------
2434 - name : Use Node.js ${{ matrix.node-version }}
2535 uses : actions/setup-node@v3
2636 with :
3343 npm install -g js-yaml
3444 npm install -g ovsx
3545
46+ # ---------------------------------------------
47+ # ----- generate files -----
48+ # ---------------------------------------------
3649 - name : Export JSON from YAML
3750 run : js-yaml mcfunction.tmLanguage.yaml > mcfunction.tmLanguage.json
3851
4356 echo "v=$VERSION" >> "$GITHUB_OUTPUT"
4457 echo "ext=syntax-mcfunction-$VERSION.vsix" >> "$GITHUB_OUTPUT"
4558
59+ # ---------------------------------------------
60+ # ----- push files -----
61+ # ---------------------------------------------
4662 - name : Push JSON to repo for sublime (if not matched)
4763 if : github.ref == 'refs/heads/main'
4864 run : |
6379 git commit -m "🤖 Bump version"
6480 git push origin main
6581
82+ # ---------------------------------------------
83+ # ----- release -----
84+ # ---------------------------------------------
6685 - id : package
6786 name : Package VSCode Ext
6887 run : vsce package
You can’t perform that action at this time.
0 commit comments