Skip to content

Commit

Permalink
1.32.2 release (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
sastaachar authored Sep 4, 2024
1 parent 83ebde1 commit b8b8a31
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publishToNPM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/is-publish-allowed.js
Original file line number Diff line number Diff line change
@@ -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 <tag>' to create a prerelease.")
process.exit(1);
};

0 comments on commit b8b8a31

Please sign in to comment.