Skip to content

Commit

Permalink
⬆️
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Sep 23, 2023
1 parent 8eddcbd commit 19bf146
Show file tree
Hide file tree
Showing 12 changed files with 711 additions and 533 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: yarn
Expand All @@ -23,7 +23,7 @@ jobs:
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: update action.yml to use image from local Dockerfile
run: |
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
test-action-svg-only:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: yarn
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
deploy-ghpages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: docker/setup-qemu-action@v2

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM node:16-slim
WORKDIR /action-release

RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \
&& yarn add canvas@2.10.2 gifsicle@5.3.0 --no-lockfile \
&& yarn add canvas@2.11.2 gifsicle@5.3.0 --no-lockfile \
&& rm -r "$YARN_CACHE_FOLDER"

COPY --from=builder /app/packages/action/dist/ /action-release/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"repository": "github:platane/snk",
"devDependencies": {
"@sucrase/jest-plugin": "3.0.0",
"@types/jest": "29.5.3",
"@types/jest": "29.5.5",
"@types/node": "16.18.38",
"jest": "29.6.1",
"jest": "29.7.0",
"prettier": "2.8.8",
"sucrase": "3.33.0",
"typescript": "5.1.6"
"sucrase": "3.34.0",
"typescript": "5.2.2"
},
"workspaces": [
"packages/**"
Expand Down
4 changes: 2 additions & 2 deletions packages/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "@snk/action",
"version": "1.0.0",
"dependencies": {
"@actions/core": "1.10.0",
"@actions/core": "1.10.1",
"@snk/gif-creator": "1.0.0",
"@snk/github-user-contribution": "1.0.0",
"@snk/solver": "1.0.0",
"@snk/svg-creator": "1.0.0",
"@snk/types": "1.0.0"
},
"devDependencies": {
"@vercel/ncc": "0.36.1",
"@vercel/ncc": "0.38.0",
"dotenv": "16.3.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"html-webpack-plugin": "5.5.3",
"ts-loader": "9.4.4",
"ts-node": "10.9.1",
"webpack": "5.88.1",
"webpack": "5.88.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/draw/drawWorld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const drawWorld = (
};

export const drawLerpWorld = (
ctx: CanvasRenderingContext2D,
ctx: CanvasRenderingContext2D | CanvasRenderingContext2D,
grid: Grid,
cells: Point[] | null,
snake0: Snake,
Expand Down
2 changes: 1 addition & 1 deletion packages/gif-creator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const createGif = async (
const { width, height } = getCanvasWorldSize(grid0, drawOptions);

const canvas = createCanvas(width, height);
const ctx = canvas.getContext("2d")!;
const ctx = canvas.getContext("2d") as any as CanvasRenderingContext2D;

const grid = copyGrid(grid0);
const stack: Color[] = [];
Expand Down
6 changes: 3 additions & 3 deletions packages/gif-creator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"dependencies": {
"@snk/draw": "1.0.0",
"@snk/solver": "1.0.0",
"canvas": "2.10.2",
"canvas": "2.11.2",
"gif-encoder-2": "1.0.5",
"gifsicle": "5.3.0",
"tmp": "0.2.1"
},
"devDependencies": {
"@types/gifsicle": "5.2.0",
"@types/tmp": "0.2.3",
"@vercel/ncc": "0.36.1"
"@types/tmp": "0.2.4",
"@vercel/ncc": "0.38.0"
},
"scripts": {
"benchmark": "ncc run __tests__/benchmark.ts --quiet"
Expand Down
2 changes: 1 addition & 1 deletion packages/github-user-contribution-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "1.0.0",
"dependencies": {
"@snk/github-user-contribution": "1.0.0",
"@vercel/node": "2.15.5"
"@vercel/node": "3.0.6"
}
}
4 changes: 2 additions & 2 deletions packages/github-user-contribution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "@snk/github-user-contribution",
"version": "1.0.0",
"dependencies": {
"node-fetch": "2.6.12"
"node-fetch": "2.7.0"
},
"devDependencies": {
"@types/node-fetch": "2.6.4",
"@types/node-fetch": "2.6.5",
"dotenv": "16.3.1"
}
}
Loading

0 comments on commit 19bf146

Please sign in to comment.