diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9449fed..973877c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,6 +16,7 @@ jobs: with: node-version: 20 - run: npm install + - run: npm build publish-npm: needs: build @@ -27,6 +28,7 @@ jobs: node-version: 18 registry-url: https://registry.npmjs.org/ - run: npm install + - run: npm build - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS_TOKEN}} diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index afd27d4..b96e481 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -14,6 +14,7 @@ jobs: - name: Install and Build 🔧 run: | # Install npm packages and build the Storybook files npm install + npm build npm run build-storybook - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@3.6.2 diff --git a/package-lock.json b/package-lock.json index 2b594e7..6677407 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@weng-lab/psychscreen-ui-components", - "version": "2.0.0", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@weng-lab/psychscreen-ui-components", - "version": "2.0.0", + "version": "2.0.2", "license": "MIT", "dependencies": { "cytoscape": "^3.30.2", diff --git a/package.json b/package.json index 7caafa4..f58c7da 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@weng-lab/psychscreen-ui-components", "description": "Typescript and Material UI based components used for psychSCREEN", "author": "SCREEN Team @ UMass Chan Medical School", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "type": "module", "typings": "dist/index.d.ts", @@ -13,10 +13,8 @@ } }, "scripts": { - "dev": "vite", "build": "tsc && vite build", "lint": "eslint .", - "preview": "vite preview", "storybook": "storybook dev -p 6006", "sb": "storybook dev -p 6006", "build-storybook": "storybook build"