diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4568e00..7fa91a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,7 +108,6 @@ jobs: args: --verbose --latest --strip header env: OUTPUT: "CHANGELOG.md" - - name: Create Release id: create_release @@ -122,3 +121,8 @@ jobs: fail_on_unmatched_files: true files: | isomorphic-logger.zip + + - name: Publish to NPM + uses: JS-DevTools/npm-publish@v2 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 219b7c8..a594dfa 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,9 @@ "bugs": { "url": "https://github.com/iSplasher/isomorphic-logger/issues" }, - "main": "dist/index.js", "homepage": "https://github.com/iSplasher/isomorphic-logger", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "dev": "cross-env NODE_ENV=development tsup --watch", "types": "tsc",