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 .",