diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml index a2a5ace..cd34d24 100644 --- a/.github/workflows/publish-to-npm.yml +++ b/.github/workflows/publish-to-npm.yml @@ -14,6 +14,8 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org/ - run: yarn install - - run: npm publish --access public + - run: yarn build + - run: yarn test + - run: yarn npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index d4d4f58..91e1e4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "qew", - "version": "0.11.1", + "version": "0.11.2", "description": "Queue asynchronous functions", "source": "qew.ts", "main": "dist/qew.js", @@ -11,7 +11,7 @@ "start": "microbundle watch", "build": "microbundle", "watch": "tsc -w", - "prepublish": "npm run build", + "prepublish": "yarn build", "test": "jest" }, "keywords": [