From c3a49ef9b3130438cfd0c00c26e5dd914ffdfd41 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 14 Jul 2024 20:09:42 +0530 Subject: [PATCH] Add a deployment yaml Signed-off-by: baalajimaestro --- .woodpecker/woodpecker.yml | 12 ++++++++++++ package.json | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .woodpecker/woodpecker.yml diff --git a/.woodpecker/woodpecker.yml b/.woodpecker/woodpecker.yml new file mode 100644 index 0000000..95138fa --- /dev/null +++ b/.woodpecker/woodpecker.yml @@ -0,0 +1,12 @@ +when: + - event: push + +steps: + - name: Deploy + image: node:20-alpine + commands: + - npm install -g pnpm + - pnpm install --frozen-lockfile + - pnpm run build + - pnpx wrangler pages deploy dist + secrets: [ cf_api_token, content_api_url, content_api_key ] diff --git a/package.json b/package.json index 61f1754..8624ca7 100644 --- a/package.json +++ b/package.json @@ -39,10 +39,4 @@ "prettier-plugin-astro": "^0.13.0", "simple-git-hooks": "^2.11.1" }, - "simple-git-hooks": { - "pre-commit": "pnpm lint-staged" - }, - "lint-staged": { - "*": "pnpm lint:fix" - } }