From b8b8a31b1de04098fdb7147599e9aba68fb1a390 Mon Sep 17 00:00:00 2001 From: Justin Mathew <42416647+sastaachar@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:36:45 +0530 Subject: [PATCH] 1.32.2 release (#7) --- .github/workflows/publishToNPM.yml | 12 ++++-------- .gitignore | 6 ++++++ package.json | 2 +- scripts/is-publish-allowed.js | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publishToNPM.yml b/.github/workflows/publishToNPM.yml index bbaa6868..4e7f7aeb 100644 --- a/.github/workflows/publishToNPM.yml +++ b/.github/workflows/publishToNPM.yml @@ -42,17 +42,13 @@ jobs: - name: Run npm install run: npm install --legacy-peer-deps - # Runs docgen and publish - - name: Run docgen and publish + # Publish + - name: Publish run: | BRANCH_NAME="${{ steps.branch_name.outputs.BRANCH_NAME }}" - npm run docgen - if [ "$BRANCH_NAME" = "release" ]; then - echo "publish release" + if [ "$BRANCH_NAME" = "main" ]; then + echo "publish prod" npm run publish-prod - elif [ "$BRANCH_NAME" = "main" ]; then - echo "publish dev" - npm run publish-dev else echo "Stopping workflow for branch $BRANCH_NAME" exit 1 diff --git a/.gitignore b/.gitignore index 72a337d7..624533d4 100644 --- a/.gitignore +++ b/.gitignore @@ -113,3 +113,9 @@ cjs # Don't ignore examples public folder !/examples/public + +# Ignore everything in the static/typedoc/ directory +static/typedoc/* + +# Except the typedoc.json file +!static/typedoc/typedoc.json diff --git a/package.json b/package.json index 16190ecc..42cf7c27 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "bundle-dts-react-full": "dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true", "build": "rollup -c", "watch": "rollup -cw", - "docgen": "typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json", + "docgen": "typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck", "test-sdk": "jest -c jest.config.sdk.js --runInBand", "test": "npm run test-sdk", "posttest": "cat ./coverage/sdk/lcov.info | coveralls", diff --git a/scripts/is-publish-allowed.js b/scripts/is-publish-allowed.js index 48759492..3c32ad71 100644 --- a/scripts/is-publish-allowed.js +++ b/scripts/is-publish-allowed.js @@ -1,8 +1,8 @@ const currentGitBranch = require('current-git-branch'); const tag = process.env.npm_config_tag || 'latest'; -if(tag === 'latest' && currentGitBranch() !== 'release') { - console.error("Can only do prereleases from branches other than release"); +if(tag === 'latest' && currentGitBranch() !== 'main') { + console.error("Can only do prereleases from branches other than main"); console.log("Use 'npm publish --tag ' to create a prerelease.") process.exit(1); }; \ No newline at end of file