Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RitikShah committed Jun 27, 2024
1 parent ef4bf19 commit f0a2047
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
with:
fetch-depth: 0

# Fetch all branches and tags
- name: Fetch all branches and tags
run: git fetch --all

- name: Checkout main branch
run: git checkout main

# ---------------------------------------------
# ----- setup deps -----
# ---------------------------------------------
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -33,6 +43,9 @@ jobs:
npm install -g js-yaml
npm install -g ovsx
# ---------------------------------------------
# ----- generate files -----
# ---------------------------------------------
- name: Export JSON from YAML
run: js-yaml mcfunction.tmLanguage.yaml > mcfunction.tmLanguage.json

Expand All @@ -43,6 +56,9 @@ jobs:
echo "v=$VERSION" >> "$GITHUB_OUTPUT"
echo "ext=syntax-mcfunction-$VERSION.vsix" >> "$GITHUB_OUTPUT"
# ---------------------------------------------
# ----- push files -----
# ---------------------------------------------
- name: Push JSON to repo for sublime (if not matched)
if: github.ref == 'refs/heads/main'
run: |
Expand All @@ -63,6 +79,9 @@ jobs:
git commit -m "🤖 Bump version"
git push origin main
# ---------------------------------------------
# ----- release -----
# ---------------------------------------------
- id: package
name: Package VSCode Ext
run: vsce package
Expand Down

0 comments on commit f0a2047

Please sign in to comment.