From 1d65f4b12aa97a65b3e27f221fdb75f3d2bcd515 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 29 Jan 2022 18:08:19 +0100 Subject: [PATCH] fix: release pipeline --- .drone.yml | 8 +++----- .gitignore | 1 + package.json | 4 +++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index b1c0f9b..fe9e6ec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,15 +7,13 @@ trigger: steps: - name: build - image: node:11 + image: node:16 pull: true group: build-static commands: - - yarn --production=false - - yarn clean - - yarn build + - yarn --frozen-lockfile + - yarn prod - yarn release - - mv dist/*.tar.gz dist/vikunja-theme.tar.gz - name: release image: plugins/s3:1 diff --git a/.gitignore b/.gitignore index 4a61e38..6ee77fb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ static/css/*.css dist/ +yarn-error.log diff --git a/package.json b/package.json index 071e618..0867661 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ }, "scripts": { "prod": "tailwindcss -i src/style.css -o static/css/styles.css", - "watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch" + "watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch", + "clean": "rm -rf dist && mkdir dist", + "release": "tar -czvf dist/vikunja-theme.tar.gz archetypes layouts static LICENSE README.md theme.toml" }, "devDependencies": { "@tailwindcss/typography": "^0.5.0",