Skip to content

Commit

Permalink
build(components): publish all contents in components folder to npm (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin authored Dec 3, 2024
1 parent 91d737d commit 1e01e63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/components-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ jobs:
make setup-js
- name: 'build typescript types'
run: make -C components build-ts
- name: 'build js bundle'
run: |
make -C components lib
# replace package.json stub version number with version from tag
- name: 'set version number'
run: |
Expand All @@ -221,4 +218,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd ./components && echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ./.npmrc && npm publish --access public
cd ./components
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ./.npmrc
ls -R # Debug: View contents of ./components
npm publish --access public
3 changes: 0 additions & 3 deletions components/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
src
dist
*.tgz
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"source": "src/index.ts",
"types": "lib/index.d.ts",
"style": "src/index.module.css",
"main": "lib/index.mjs",
"main": "src/index.ts",
"module": "src/index.ts",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1e01e63

Please sign in to comment.