-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Move to semantic-release, fix validator issues, bug fixes
- Loading branch information
Showing
60 changed files
with
7,177 additions
and
1,797 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,50 +7,64 @@ jobs: | |
build-and-publish: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
permissions: | ||
actions: read | ||
pages: write | ||
contents: write | ||
deployments: none | ||
packages: none | ||
pull-requests: write | ||
security-events: none | ||
checks: none | ||
id-token: none | ||
issues: write | ||
repository-projects: none | ||
statuses: none | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20] | ||
|
||
- name: Get Package Version | ||
id: get-package-version | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Using Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: app | ||
uses: stevenbenitez/get-package-version-action@v1 | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Build | ||
- name: Prep and Command Line Build | ||
env: | ||
CI: "" | ||
run: | | ||
npm ci | ||
pushd app | ||
npm run all | ||
npm ci | ||
npm run devenvandjsnbuild --max_old_space_size=16384 | ||
pushd toolbuild | ||
pushd jsn | ||
npm pack --max_old_space_size=16384 | ||
npm pack --max_old_space_size=16384 | ||
popd | ||
popd | ||
gulp customizesite | ||
popd | ||
- name: Create draft Minecraft Creator Tools release | ||
- name: Run Tests | ||
id: runtests | ||
run: | | ||
pushd samplecontent | ||
pushd addon | ||
npm ci | ||
npx gulp package | ||
popd | ||
popd | ||
pushd app | ||
npm test | ||
popd | ||
- name: Create Minecraft Creator Tools release | ||
id: create_mctools_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.get-package-version.outputs.version }}-alpha | ||
release_name: Minecraft Creator Tools | ||
draft: true | ||
prerelease: true | ||
|
||
- name: Upload mctools-v.tgz to node_module release | ||
id: upload_mctools-v_tgz | ||
uses: actions/[email protected] | ||
run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_mctools_release.outputs.upload_url }} | ||
asset_path: ./app/toolbuild/jsn/mctools-${{ steps.get-package-version.outputs.version }}.tgz | ||
asset_name: mctools-${{ steps.get-package-version.outputs.version }}.tgz | ||
asset_content_type: application/tar+gzip | ||
|
||
- name: Deploy to GitHub Pages | ||
if: success() | ||
|
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{ | ||
"name": "mctools", | ||
"name": "@minecraft/creator-tools", | ||
"version": "0.2.9", | ||
"productName": "Minecraft Creator Tools", | ||
"description": "Minecraft Creator Tools", | ||
"description": "Minecraft Creator Tools command line and libraries.", | ||
"private": true, | ||
"bin": { | ||
"mct": "./cli/index.js" | ||
}, | ||
"dependencies": { | ||
"@octokit/rest": "^18.5.2", | ||
"@rauschma/stringio": "^1.4.0", | ||
"ajv": "^8.11.0", | ||
"axios": "^1.6.4", | ||
"commander": "^8.2.0", | ||
"esbuild-wasm": "^0.21.3", | ||
"eslint": "^8.34.0", | ||
"esprima-next": "^6.0.2", | ||
"exifr": "^7.1.3", | ||
"inquirer": "^8.2.0", | ||
"js-md5": "^0.7.3", | ||
"jszip": "^3.7.1", | ||
"localforage": "^1.9.0", | ||
"open": "^8.3.0", | ||
"pako": "^2.0.4", | ||
"esbuild-wasm": "^0.21.3", | ||
"threads": "^1.7.0", | ||
"eslint": "^8.34.0", | ||
"js-md5": "^0.7.3", | ||
"ajv": "^8.11.0", | ||
"localforage": "^1.9.0", | ||
"permessage-deflate": "^0.1.7", | ||
"ste-events": "^2.0.9", | ||
"threads": "^1.7.0", | ||
"trash": "^8.0.0" | ||
} | ||
} |
Oops, something went wrong.