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.