Skip to content

Commit 74a8e1c

Browse files
authored
Merge pull request #16 from movinsilva/release--test-personal
feat: add release workflow and changesets
2 parents d26d511 + 75db15e commit 74a8e1c

File tree

8 files changed

+751
-11
lines changed

8 files changed

+751
-11
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "asgardeo/web-ui-sdks" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"privatePackages": {
10+
"version": true,
11+
"tag": true
12+
},
13+
"updateInternalDependencies": "patch",
14+
"ignore": []
15+
}

.github/workflows/release.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This workflow will release the packages.
2+
3+
name: 🚀 Release
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
concurrency: ${{ github.workflow }}-${{ github.ref }}
12+
13+
env:
14+
GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
15+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16+
17+
jobs:
18+
release:
19+
name: 📦 Release
20+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
node-version: [lts/*]
25+
steps:
26+
- name: ⬇️ Checkout
27+
id: checkout
28+
uses: actions/[email protected]
29+
with:
30+
fetch-depth: 0
31+
token: ${{ env.GH_TOKEN }}
32+
33+
- name: 🟢 Setup node
34+
id: setup-node
35+
uses: actions/setup-node@v2
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
39+
- name: 🥡 Setup pnpm
40+
id: setup-pnpm
41+
uses: pnpm/[email protected]
42+
with:
43+
version: latest
44+
run_install: false
45+
46+
- name: 🎈 Get pnpm store directory
47+
id: get-pnpm-cache-dir
48+
run: |
49+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
50+
- name: 🧩 Install Dependencies
51+
id: install-dependencies
52+
run: pnpm install
53+
54+
- name: 📣 Create Release Pull Request or Publish to npm
55+
id: changesets
56+
uses: changesets/action@v1
57+
with:
58+
title: "[Release] [GitHub Action] Update package versions"
59+
publish: pnpm publish:packages
60+
version: pnpm version:packages
61+
commit: "[WSO2 Release] [GitHub Action] [Release] [skip ci] update package versions"
62+
env:
63+
GITHUB_TOKEN: ${{ env.GH_TOKEN }}

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
"name": "web-ui-sdks",
33
"version": "0.1.0",
44
"license": "Apache-2.0",
5-
"scripts": {},
5+
"scripts": {
6+
"publish:packages": "changeset publish",
7+
"version:packages": "changeset version && pnpm install --lockfile-only"
8+
},
69
"private": true,
710
"devDependencies": {
11+
"@changesets/changelog-github": "^0.5.0",
12+
"@changesets/cli": "^2.27.3",
813
"nx": "18.2.4"
914
},
1015
"workspaces": [

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@asgardeo/js-ui-core",
3-
"version": "0.1.0",
4-
"description": "Framework agnostic JS UI Core for Asgardeo or Identity Server",
2+
"name": "@asgardeo/js",
3+
"version": "0.0.0",
4+
"description": "Framework agnostic JS for Asgardeo or Identity Server",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
77
"umd": "dist/umd/index.js",

packages/core/src/models/branding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {TextPreference} from '../i18n/screens/model';
2323
/**
2424
* Interface for the text in the customization object.
2525
*/
26-
export type BrandingPreferenceText = Record<string, TextPreference>;
26+
export type BrandingPreferenceText = Record<string, RecursivePartial<TextPreference>>;
2727

2828
export type BrandingPreferenceTextProps = RecursivePartial<BrandingPreferenceText>;
2929

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@asgardeo/react-ui",
3-
"version": "0.1.0",
2+
"name": "@asgardeo/react",
3+
"version": "0.0.0",
44
"description": "React Wrapper to build customizable login UIs for Asgardeo or Identity Server",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)