Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "asgardeo/web-ui-sdks" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"privatePackages": {
"version": true,
"tag": true
},
"updateInternalDependencies": "patch",
"ignore": []
}
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow will release the packages.

name: 🚀 Release

on:
push:
branches:
- main
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
release:
name: 📦 Release
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/checkout@v2.3.3
with:
fetch-depth: 0
token: ${{ env.GH_TOKEN }}

- name: 🟢 Setup node
id: setup-node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: 🥡 Setup pnpm
id: setup-pnpm
uses: pnpm/action-setup@v2.1.0
with:
version: latest
run_install: false

- name: 🎈 Get pnpm store directory
id: get-pnpm-cache-dir
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: 🧩 Install Dependencies
id: install-dependencies
run: pnpm install

- name: 📣 Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
title: "[Release] [GitHub Action] Update package versions"
publish: pnpm publish:packages
version: pnpm version:packages
commit: "[WSO2 Release] [GitHub Action] [Release] [skip ci] update package versions"
env:
GITHUB_TOKEN: ${{ env.GH_TOKEN }}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"name": "web-ui-sdks",
"version": "0.1.0",
"license": "Apache-2.0",
"scripts": {},
"scripts": {
"publish:packages": "changeset publish",
"version:packages": "changeset version && pnpm install --lockfile-only"
},
"private": true,
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.3",
"nx": "18.2.4"
},
"workspaces": [
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@asgardeo/js-ui-core",
"version": "0.1.0",
"description": "Framework agnostic JS UI Core for Asgardeo or Identity Server",
"name": "@asgardeo/js",
"version": "0.0.0",
"description": "Framework agnostic JS for Asgardeo or Identity Server",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"umd": "dist/umd/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/models/branding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {TextPreference} from '../i18n/screens/model';
/**
* Interface for the text in the customization object.
*/
export type BrandingPreferenceText = Record<string, TextPreference>;
export type BrandingPreferenceText = Record<string, RecursivePartial<TextPreference>>;

export type BrandingPreferenceTextProps = RecursivePartial<BrandingPreferenceText>;

Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asgardeo/react-ui",
"version": "0.1.0",
"name": "@asgardeo/react",
"version": "0.0.0",
"description": "React Wrapper to build customizable login UIs for Asgardeo or Identity Server",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
Loading