diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..660db85 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: npm install + + - name: run tests + run: npm test + diff --git a/pack.py b/pack.py index 437bd22..051fa14 100644 --- a/pack.py +++ b/pack.py @@ -2,7 +2,7 @@ import zipfile import pathlib -srcdir = "src" +srcdir = "pack" output_name = "debug-stick.mcpack" print("Packaging .mcpack add-on...") diff --git a/pack/manifest.json b/pack/manifest.json index 1a40939..b377610 100644 --- a/pack/manifest.json +++ b/pack/manifest.json @@ -29,7 +29,7 @@ "dependencies": [ { "module_name": "@minecraft/server", - "version": "1.12.0-beta.1.21.0-stable" + "version": "1.12.0-beta" } ], diff --git a/package.json b/package.json index 47d7911..2725b14 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/vytdev/debug-stick#readme", "dependencies": { - "@minecraft/server": "^1.12.0-beta.1.21.0-stable", + "@minecraft/server": "1.12.0-beta.1.21.0-stable", "typescript": "^5.4.5" } }