From 8c3ebf2fe6b86a83fa0563a61a79102d53711fc2 Mon Sep 17 00:00:00 2001 From: Matthias Giger Date: Wed, 12 Jun 2024 20:32:54 +0200 Subject: [PATCH] fix(project): update dependencies and some improvements release-npm --- .github/workflows/release.yml | 14 +++++++++----- .gitignore | 2 +- package.json | 33 +++++++++++++-------------------- 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a56bf1..75f0048 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,13 +7,17 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + id-token: write + contents: write steps: - - uses: actions/checkout@v3 - - run: npm install --legacy-peer-deps + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 + - run: bun install - name: 🧪 Test - run: npm test + run: bun run test - name: 🚧 Build - run: npm run build - - uses: tobua/release-npm-action@v1 + run: bun run build + - uses: tobua/release-npm-action@v3 with: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 2973d56..54f3153 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ node_modules -package-lock.json +bun.lockb tsconfig.json dist diff --git a/package.json b/package.json index 30f169c..16bf13c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "build": "padua build", "start": "padua watch", - "test": "vitest run --no-threads" + "test": "vitest run --pool=threads --poolOptions.threads.singleThread" }, "padua": { "esbuild": { @@ -23,9 +23,17 @@ } }, "dependencies": { - "sharp": "^0.31.2", + "sharp": "^0.33.4", "svg2vectordrawable": "^2.9.1" }, + "devDependencies": { + "@types/get-pixels": "^3.3.4", + "@types/sharp": "^0.32.0", + "get-pixels": "^3.3.3", + "jest-fixture": "^4.1.0", + "padua": "^4.0.1", + "vitest": "^1.6.0" + }, "peerDependencies": { "numic": ">= 0.3" }, @@ -47,29 +55,14 @@ "icon", "react-native" ], - "devDependencies": { - "@types/get-pixels": "^3.3.2", - "@types/sharp": "^0.31.0", - "get-pixels": "^3.3.3", - "jest-fixture": "^3.0.1", - "padua": "^0.6.1", - "vitest": "^0.26.1" - }, "prettier": "padua/configuration/.prettierrc.json", "eslintConfig": { "extends": "./node_modules/padua/configuration/eslint.cjs" }, - "jest": { - "globals": { - "ts-jest": { - "tsconfig": "./tsconfig.json" - } - }, - "transform": { - "^.+\\.tsx?$": "ts-jest" - } + "publishConfig": { + "provenance": true }, "engines": { - "node": ">= 14" + "node": ">= 18" } }