diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 51fb0ca3..eaa1d782 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,10 +13,13 @@ jobs: with: node-version-file: ".nvmrc" cache: "npm" + - name: Install dependencies + run: npm ci - name: Run tests run: | npm run lint npm run build + npm run docs npm run test publish-npm: @@ -30,8 +33,11 @@ jobs: node-version-file: ".nvmrc" cache: "npm" registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm run build - - run: npm publish --access=public + - name: Install dependencies + run: npm ci + - name: Build application + run: npm run build + - name: Publish to npm + run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTHTOKEN}} diff --git a/package-lock.json b/package-lock.json index 8e4e9e48..4c070c60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@schibsted/account-sdk-browser", - "version": "4.8.6", + "version": "4.8.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@schibsted/account-sdk-browser", - "version": "4.8.6", + "version": "4.8.7", "license": "MIT", "dependencies": { "tiny-emitter": "^2.1.0" diff --git a/package.json b/package.json index b996d693..5af213a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@schibsted/account-sdk-browser", - "version": "4.8.6", + "version": "4.8.7", "description": "Schibsted account SDK for browsers", "main": "index.js", "type": "module", diff --git a/src/version.js b/src/version.js index dbbf6d4b..690b6d64 100644 --- a/src/version.js +++ b/src/version.js @@ -1,5 +1,5 @@ // Automatically generated in 'npm version' by scripts/genversion.js 'use strict' -const version = '4.8.6'; +const version = '4.8.7'; export default version;