diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 44dc0f1..02dec65 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -29,6 +29,7 @@ jobs: node-version: 14 registry-url: https://registry.npmjs.org/ - run: yarn --frozen-lockfile + - run: yarn build - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -43,6 +44,7 @@ jobs: node-version: 14 registry-url: https://npm.pkg.github.com/ - run: yarn --frozen-lockfile + - run: yarn build - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.gitignore b/.gitignore index 6704566..b707a25 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,5 @@ dist # TernJS port file .tern-port + +package diff --git a/package.json b/package.json index 68ade09..ddbe825 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fractalsoftware/random-avatar-generator", - "version": "1.0.8", + "version": "1.0.9", "description": "A random avatar generator with low collision", "module": "./src/index.js", "types": "./src/index.d.ts", @@ -45,5 +45,6 @@ }, "directories": { "example": "example" - } + }, + "files": ["/dist", "/src/", "/example"] }