Skip to content

Commit f0a2047

Browse files
committedJun 27, 2024·
chore: fix
1 parent ef4bf19 commit f0a2047

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎.github/workflows/publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
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:
@@ -33,6 +43,9 @@ jobs:
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

@@ -43,6 +56,9 @@ jobs:
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: |
@@ -63,6 +79,9 @@ jobs:
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

0 commit comments

Comments
 (0)
Please sign in to comment.