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
50 changes: 42 additions & 8 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Deploy Docs
name: Docs & Release

on:
push:
branches: [main, development]

permissions:
contents: read
contents: write
pages: write
id-token: write
packages: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -32,6 +34,7 @@ jobs:
with:
node-version: 20.x
cache: pnpm
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -51,22 +54,53 @@ jobs:
with:
path: apps/docs/.vitepress/dist

deploy:
name: Deploy
deploy-docs:
name: Deploy Docs
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
# If on development branch, deploy as preview
preview: ${{ github.ref == 'refs/heads/development' }}
preview: ${{ github.ref_name == 'development' }}

- name: Show deployed URL
run: |
echo "Deployed URL: ${{ steps.deployment.outputs.page_url }}"

release:
name: Release Packages
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
registry-url: https://registry.npmjs.org/

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm build

- name: Version, Publish & Create Release
uses: changesets/action@v1
with:
publish: npm
7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @umah-creative/browser-native

## 0.1.1

### Patch Changes

- Updated dependencies
- @umah-creative/browser-native-types@0.1.0

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umah-creative/browser-native",
"version": "0.1.0",
"version": "0.1.1",
"description": "A lightweight, modern TypeScript library that provides a unified interface to browser-native APIs such as Clipboard, Geolocation, Notifications, and more. Fully tree-shakeable, framework-agnostic, and optimized for modern browsers.",
"author": "Ummah Creative",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @umah-creative/browser-native-react

## 0.1.1

### Patch Changes

- Updated dependencies
- @umah-creative/browser-native-types@0.1.0
- @umah-creative/browser-native@0.1.1

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umah-creative/browser-native-react",
"version": "0.1.0",
"version": "0.1.1",
"description": "React hooks wrapper for browser-native APIs. Provides idiomatic, composable hooks built on top of the core browser-native library.",
"author": "Ummah Creative",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @umah-creative/browser-native-types

## 0.1.0

### Minor Changes

- Add new TypeScript type definitions for the browser-native library, improving type safety and developer experience.
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umah-creative/browser-native-types",
"version": "0.0.0",
"version": "0.1.0",
"description": "Shared TypeScript types for @umah-creative/browser-native packages.",
"author": "Ummah Creative",
"license": "MIT",
Expand Down