Skip to content

Commit

Permalink
chore: fixes for build and reorganising files
Browse files Browse the repository at this point in the history
  • Loading branch information
kulak-at committed Jan 20, 2024
1 parent 452b742 commit f51ff43
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
14 changes: 12 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
node_modules
src/
babel.config.js
*.test.js
*.test.js
dist/*.test.js
.github
.cache
src
.gitignore
.npmignore
.npmrc
jest.config.js
tsconfig.json
yarn.lock
coverage
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lib": ["es2022", "esnext.decorators", "esnext.disposable"],
"sourceMap": true,
"baseUrl": "./src",
"outDir": ".",
"outDir": "./dist",
"incremental": true,
},
"include": ["src/"],
Expand Down

0 comments on commit f51ff43

Please sign in to comment.