From 2e6c08e43196563cc55b6f21ee3ac3420985cf4f Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 13 Dec 2021 21:22:04 +0100 Subject: [PATCH] feat(ci): Added CI and update dependencies --- .npmignore | 3 +++ .woodpecker/deploy.yml | 14 ++++++++++++++ .woodpecker/lint.yml | 9 +++++++++ package.json | 14 +++++++------- 4 files changed, 33 insertions(+), 7 deletions(-) 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..b0b1e0a --- /dev/null +++ b/.woodpecker/deploy.yml @@ -0,0 +1,14 @@ +pipeline: + deploy: + when: + event: tag + tag: v* + image: node:lts-alpine + commands: + - 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/package.json b/package.json index 23e3275..27db493 100644 --- a/package.json +++ b/package.json @@ -20,18 +20,18 @@ "devDependencies": { "@flaschengeist/api": "^1.0.0-alpha.7", "@flaschengeist/types": "^1.0.0-alpha.10", - "@quasar/app": "^3.2.4", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", + "@quasar/app": "^3.2.5", + "@typescript-eslint/eslint-plugin": "^5.7.0", + "@typescript-eslint/parser": "^5.7.0", "axios": "^0.24.0", - "eslint": "^8.4.0", + "eslint": "^8.4.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-vue": "^8.1.1", + "eslint-plugin-vue": "^8.2.0", "pinia": "^2.0.6", "prettier": "^2.5.1", - "quasar": "^2.3.3", - "typescript": "^4.5.2" + "quasar": "^2.3.4", + "typescript": "^4.5.3" }, "peerDependencies": { "@flaschengeist/api": "^1.0.0-alpha.7"