8.0.6 #139
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: 📦 Publish To Vscode | |
env: | |
FORCE_COLOR: true | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
test: | |
name: 📋 Unit Test | |
uses: ./.github/workflows/unit-test.yml | |
universal: | |
runs-on: windows-latest | |
name: 📦 Create universal build | |
steps: | |
- name: 📦 Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: 🏗️ Setup Node.js Environment | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
cache-dependency-path: package-lock.json | |
node-version-file: .nvmrc | |
- name: Setup Node Project | |
run: npm install | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🛠️ Build | |
env: | |
VSCE_PAT: ${{ secrets.vsce }} | |
run: | | |
npx vsce package | |
echo "Size of package: $(du -h *.vsix | cut -f1)" >> $GITHUB_STEP_SUMMARY | |
- name: 🚚 Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: universal | |
path: "*.vsix" | |
## Check if the webpacked version is still good | |
- name: 📋 Test | |
run: npm run test | |
- name: 🔍 Linting | |
run: npm run lint | |
publish: | |
if: ${{ needs.test.result == 'success' && needs.universal.result == 'success' }} | |
runs-on: ubuntu-latest | |
needs: [universal, test] | |
name: 📦 -> 🏤 Publish To Vscode | |
environment: | |
name: Vscode Marketplace | |
url: https://marketplace.visualstudio.com/items?itemName=BlockceptionLtd.blockceptionvscodeminecraftbedrockdevelopmentextension | |
steps: | |
- name: 🚚 Download Artifact | |
uses: actions/download-artifact@v4 | |
- name: 📦 -> 🏤 Upload to Vscode | |
run: npx @vscode/vsce publish --packagePath $(find . -iname *.vsix) | |
env: | |
VSCE_PAT: ${{ secrets.vsce }} |