diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..d44f7db2 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,55 @@ +on: + push: # Runs whenever a commit is pushed to the repository... +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +permissions: + contents: write +jobs: + build-deploy: + runs-on: ubuntu-latest + env: + JVM_OPTS: -Xmx3200m + JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v5 + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 17 + - name: Setup submodule + run: git submodule update --init --recursive + - uses: actions/setup-node@v2 + with: + cache: "npm" + node-version-file: ".nvmrc" + - name: Info + run: | + cat < (http://scratchdisk.com)", "Jonathan Puckey (http://studiomoniker.com)"], + "contributors": [ + "Jürg Lehni (http://scratchdisk.com)", + "Jonathan Puckey (http://studiomoniker.com)" + ], "main": "dist/paper-full.js", "types": "dist/paper.d.ts", "scripts": { @@ -21,7 +24,14 @@ "jshint": "gulp jshint", "test": "gulp test" }, - "files": ["AUTHORS.md", "CHANGELOG.md", "dist/", "examples/", "LICENSE.txt", "README.md"], + "files": [ + "AUTHORS.md", + "CHANGELOG.md", + "dist/", + "examples/", + "LICENSE.txt", + "README.md" + ], "engines": { "node": ">=8.0.0" }, @@ -31,6 +41,9 @@ "pre-push": "gulp test --ensure-branch develop" } }, + "overrides": { + "graceful-fs": "^4.2.11" + }, "browser": { "canvas": false, "jsdom": false, @@ -51,7 +64,8 @@ "gulp-prepro": "^2.4.0", "gulp-qunits": "^2.1.2", "gulp-rename": "^1.4.0", - "gulp-shell": "^0.7.0", + "gulp-typescript": "^5.0.0", + "gulp-shell": "^0.8.0", "gulp-symlink": "^2.1.4", "gulp-uglify": "^1.5.4", "gulp-uncomment": "^0.3.0", @@ -74,7 +88,23 @@ "source-map-support": "^0.5.12", "stats.js": "0.17.0", "straps": "^3.0.1", - "typescript": "^3.1.6" + "typescript": "^4.8.2" }, - "keywords": ["vector", "graphic", "graphics", "2d", "geometry", "bezier", "curve", "curves", "path", "paths", "canvas", "svg", "paper", "paper.js", "paperjs"] + "keywords": [ + "vector", + "graphic", + "graphics", + "2d", + "geometry", + "bezier", + "curve", + "curves", + "path", + "paths", + "canvas", + "svg", + "paper", + "paper.js", + "paperjs" + ] } diff --git a/travis/setup-git.sh b/travis/setup-git.sh index 8e4c72ab..35307368 100755 --- a/travis/setup-git.sh +++ b/travis/setup-git.sh @@ -26,7 +26,7 @@ echo "https://${GH_TOKEN}:@github.com" > .git/credentials # fetch = +refs/heads/*:refs/remotes/origin/* # We can change the fetch setting by removing and adding the origin again: git remote remove origin -git remote add origin https://github.com/paperjs/paper.js.git +git remote add origin https://github.com/scratchfoundation/paper.js.git # Avoid detached head... git checkout $TRAVIS_BRANCH