diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0531d5f..8ac8d4a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,12 +31,8 @@ jobs: - name: Upload artifacts folder uses: actions/upload-artifact@v3 with: - name: artifacts - path: | - . - !node_modules - !src - !.git + name: dist + path: dist/ publish: runs-on: ubuntu-latest @@ -53,9 +49,11 @@ jobs: - name: Check if version has been updated id: check uses: EndBug/version-check@v2 + - name: Set Token + run: npm config set _authToken=$NPM_TOKEN - name: Publish - if: steps.check.outputs.changed == 'true' + # if: steps.check.outputs.changed == 'true' run: npm publish --access public - name: Publish tag - if: steps.check.outputs.changed == 'true' + # if: steps.check.outputs.changed == 'true' run: gh release create `node -p require('package.json').version` \ No newline at end of file diff --git a/.npmignore b/.npmignore index 06bce1d..10e014a 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,14 @@ node_modules -src/ babel.config.js -*.test.js \ No newline at end of file +*.test.js +dist/*.test.js +.github +.cache +src +.gitignore +.npmignore +.npmrc +jest.config.js +tsconfig.json +yarn.lock +coverage diff --git a/package.json b/package.json index aeabd36..da3b4ff 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@hypersphere/omnibus", "version": "0.1.0", - "main": "./index.js", - "types": "./index.d.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "license": "MIT", "devDependencies": { "@babel/plugin-proposal-explicit-resource-management": "^7.23.3", diff --git a/tsconfig.json b/tsconfig.json index 066cf54..0466ded 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "lib": ["es2022", "esnext.decorators", "esnext.disposable"], "sourceMap": true, "baseUrl": "./src", - "outDir": ".", + "outDir": "./dist", "incremental": true, }, "include": ["src/"],