From 195593ddc5841d6a7dfc48717932af71fc78216a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 14 Dec 2021 15:47:48 +0100 Subject: [PATCH] feat(ci): Added woodpecker CI --- .npmignore | 3 +++ .woodpecker/deploy.yml | 15 +++++++++++++++ .woodpecker/lint.yml | 9 +++++++++ README.md | 2 ++ 4 files changed, 29 insertions(+) create mode 100644 .npmignore create mode 100644 .woodpecker/deploy.yml create mode 100644 .woodpecker/lint.yml diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..356d1d4 --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +yarn-error.log +.woodpecker/ + diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml new file mode 100644 index 0000000..d91c619 --- /dev/null +++ b/.woodpecker/deploy.yml @@ -0,0 +1,15 @@ +pipeline: + deploy: + when: + event: tag + tag: "@flaschengeist/api-v*" + image: node:lts-alpine + commands: + - cd api + - echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc + - yarn publish --non-interactive + secrets: [ node_auth_token ] + +depends_on: + - lint + diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..040a118 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,9 @@ +pipeline: + lint: + when: + branch: [main, develop] + image: node:lts-alpine + commands: + - yarn install + - yarn lint + diff --git a/README.md b/README.md index fc358ed..a51c3b8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # Flaschengeist (frontend) +![status-badge](https://ci.os-sc.org/api/badges/Flaschengeist/flaschengeist-frontend/status.svg) + Modular student club administration system, licensed under the MIT license.