diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9614ae3..ca1c87c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,6 @@ jobs: node-version: '14.x' registry-url: 'https://registry.npmjs.org' - run: npm install - - run: npm build # Publish to npm - run: npm publish --access public env: diff --git a/changelog.md b/changelog.md index 7fc071d..f27b0c7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +0.2.3 +----- +- Fix npm package (was not built) + 0.2.1 ----- - Export typescript definitions diff --git a/package.json b/package.json index ea587cf..35da239 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,18 @@ { "name": "twitter-api-v2", - "version": "0.2.1", + "version": "0.2.3", "description": "Twitter api v1 and v2 client for node", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepublish": "npm run build" }, "repository": "github:plhery/node-twitter-api", "author": "Paul-Louis Hery (https://twitter.com/plhery)", "license": "Apache-2.0", + "files": ["dist"], "devDependencies": { "@types/node": "^14.6.4", "commander": "^6.1.0",