Skip to content

Revert "add support in Dropdown for creating new options using allowCreateOptions prop (#1107)"This reverts commit 646d1543151dd84a30da641cc1cf2b08e24a0b2a. #84

Revert "add support in Dropdown for creating new options using allowCreateOptions prop (#1107)"This reverts commit 646d1543151dd84a30da641cc1cf2b08e24a0b2a.

Revert "add support in Dropdown for creating new options using allowCreateOptions prop (#1107)"This reverts commit 646d1543151dd84a30da641cc1cf2b08e24a0b2a. #84

Workflow file for this run

name: Release to npm
on:
pull_request:
branches:
- main
types:
- closed
jobs:
publish-to-npm:
name: Publish to npm Registry
runs-on: ubuntu-latest
if: github.head_ref == 'changeset-release/main'
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 6.32.2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm run build --filter=./packages
# Delete existing .npmrc file if it exists
- name: Delete existing .npmrc
run: |
if [ -f .npmrc ]; then
echo "Deleting existing .npmrc file"
rm .npmrc
fi
- name: Create .npmrc for npm Registry
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
- name: Publish Framework Package
run: |
current_version=$(jq -r '.version' packages/framework/package.json)
latest_version=$(npm show @ensembleui/react-framework version || echo "none")
if [ "$current_version" != "$latest_version" ]; then
echo "Publishing @ensembleui/react-framework version $current_version"
pnpm publish --filter ./packages/framework --no-git-checks
else
echo "No version change detected for @ensembleui/react-framework. Skipping publish."
fi
- name: Publish Runtime Package
run: |
current_version=$(jq -r '.version' packages/runtime/package.json)
latest_version=$(npm show @ensembleui/react-runtime version || echo "none")
if [ "$current_version" != "$latest_version" ]; then
echo "Publishing @ensembleui/react-runtime version $current_version"
pnpm publish --filter ./packages/runtime --no-git-checks
else
echo "No version change detected for @ensembleui/react-runtime. Skipping publish."
fi