-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ci): Move to semantic-release, fix validator issues, bug fixes #31
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devenvandjsnbuild
is a mouth full :D