Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(proposal): main to → dev #139

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"fixed": [["@monite/sdk-react", "@monite/sdk-api"]],
"linked": [],
"access": "public",
"baseBranch": "origin/dev",
"baseBranch": "origin/main",
"updateInternalDependencies": "patch",
"ignore": ["sdk-demo-with-nextjs-and-clerk-auth"]
}
File renamed without changes.
8 changes: 0 additions & 8 deletions .changeset/gold-avocados-join.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/three-points-collect.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
# If no changeset files are detected, the packages are published to NPM and a Sentry release is created.
# If changeset files are detected, a "Version Packages" PR is created.
# Publishes packages to NPM and makes a Sentry release.
# Refer to the "changesets/action" documentation for more information: https://github.com/changesets/action

name: Version or Release Packages
name: Release Packages

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
# Do not cancel ✖︎ in-progress runs when a new workflow with the same group name is triggered
cancel-in-progress: false

env:
RELEASE_BRANCH: "origin/main"

jobs:
npm-publish:
name: Publish to NPM
runs-on: ubuntu-latest
if: github.repository == 'team-monite/monite-sdk'
permissions:
contents: write
pull-requests: write
environment: production
steps:
- name: Validate Release Branch
run: |
if [ "${{ github.ref_name }}" == "$RELEASE_BRANCH" ]; then
echo "✔︎ Branch '${{ github.ref_name }}' is a release branch '$RELEASE_BRANCH'. Continuing..."
else
echo "✖︎ Branch '${{ github.ref_name }}' is not a release branch '$RELEASE_BRANCH'. Exiting..." >&2
exit 1
fi
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down Expand Up @@ -56,13 +62,11 @@ jobs:
# The 'NPM_TOKEN' must be set to at least empty, as it is used in the ".yarnrc.yml" file
NPM_TOKEN: ""

- name: Create Release Pull Request or Publish to NPM
- name: Publish to NPM
id: changesets
uses: changesets/[email protected]
with:
publish: yarn exec .changeset/publish.sh --create-git-tags
version: yarn exec .changeset/version.sh
title: "chore: Version Packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/validate-changeset-base-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- main
- dev
types: [synchronize, edited]

concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/version-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Creates a "Version Packages" PR.
# Refer to the "changesets/action" documentation for more information: https://github.com/changesets/action

name: Version Packages

on:
push:
branches:
- main

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
npm-publish:
name: Publish to NPM
runs-on: ubuntu-latest
if: github.repository == 'team-monite/monite-sdk'
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Validate Changeset Config
run: .changeset/validate-changesets-base-branch.sh ${{ github.ref_name }}

- name: Setup Monorepo
uses: team-monite/setup-yarn-project-action@b4b4161e23724bfce41a9a66cb46be87cdd39e36
with:
# Do not use the cache if merged PR source branch starts with `changeset-release/`
cache: ${{ !startsWith(github.event.pull_request.head.ref, 'changeset-release/') }}

- name: Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/[email protected]
with:
version: yarn exec .changeset/version.sh
title: "chore: Version Packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions packages/sdk-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @monite/sdk-api

## 3.14.1

## 3.14.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monite/sdk-api",
"version": "3.14.0",
"version": "3.14.1",
"apiVersion": "2023-09-01",
"publishConfig": {
"access": "public"
Expand Down
6 changes: 6 additions & 0 deletions packages/sdk-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @monite/sdk-drop-in

## 1.6.3

### Patch Changes

- @monite/[email protected]

## 1.6.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@team-monite/sdk-demo",
"version": "1.6.2",
"version": "1.6.3",
"private": true,
"type": "module",
"exports": {
Expand Down
6 changes: 6 additions & 0 deletions packages/sdk-drop-in/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @monite/sdk-drop-in

## 1.4.8

### Patch Changes

- @monite/[email protected]

## 1.4.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-drop-in/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monite/sdk-drop-in",
"version": "1.4.7",
"version": "1.4.8",
"publishConfig": {
"access": "public"
},
Expand Down
11 changes: 11 additions & 0 deletions packages/sdk-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @monite/sdk-react

## 3.14.1

### Patch Changes

- 84ebfffc: fix(DEV-11506): prevent PDFObject.embed() call for image URLs

We've updated the file preview logic to skip calling `PDFObject.embed()` when the URL points to an image. This fix
addresses an issue where attempting to embed image files as PDFs was causing errors or unexpected behavior.

- @monite/[email protected]

## 3.14.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monite/sdk-react",
"version": "3.14.0",
"version": "3.14.1",
"apiVersion": "2024-05-25",
"publishConfig": {
"access": "public"
Expand Down
Loading