From ce2ced4ffa61110f6a1bfd96817338932f0bb978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Tue, 12 Sep 2023 11:03:56 +0200 Subject: [PATCH] Bump version / add ci --- .github/workflows/package.yml | 21 +++++++++++++++++++++ package.json | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..4173dc5 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,21 @@ +name: Node.js Package +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + registry-url: 'https://registry.npmjs.org' + scope: '@bitinflow' + - run: npm install + - run: npm run build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 32038d4..01777ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bitinflow/nuxt-oauth", - "version": "2.0.2", + "version": "2.0.3", "description": "Nuxt 3 OAuth Module", "license": "MIT", "type": "module", @@ -21,6 +21,7 @@ "dev": "nuxi dev playground", "dev:build": "nuxi build playground", "dev:prepare": "nuxt-module-build --stub && nuxi prepare playground", + "build": "npm run lint && npm run test && npm run prepack", "release": "npm run lint && npm run test && npm run prepack && changelogen --release && git push --follow-tags", "push": "npm publish --access public", "lint": "eslint .",