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

Updated release workflow and reverted changes from last failed publish #151

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
18 changes: 18 additions & 0 deletions .changeset/rare-peaches-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@itwin/changed-elements-react": minor
---

- Added experimental React component for the new Named Version selector. Its name or API is not stable yet, but you can try it out the following way.

```TypeScript
import { NamedVersionSelectorWidget } from "@itwin/changed-elements-react/experimental";

[...]

return (
<VersionCompareContext iModelsClient={iModelsClient}>
<NamedVersionSelectorWidget iModel={iModel} />
</VersionCompareContext>
);
}
```
15 changes: 13 additions & 2 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Changesets Release

on:
workflow_dispatch:
push:
branches:
- master

jobs:
CreateRelease:
Expand Down Expand Up @@ -45,13 +47,22 @@ jobs:
run: pnpm audit --audit-level high

- name: Create release PR or publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run build:components && changeset publish
publish: pnpm run build:components && pnpm changeset publish
title: Release packages [publish docs]
commit: Release packages [publish docs]
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}
GIT_AUTHOR_NAME: imodeljs-admin
GIT_AUTHOR_EMAIL: [email protected]

- name: Log Changesets Outputs
run: |
echo "Published: ${{ steps.changesets.outputs.published }}"
echo "Published Packages: ${{ steps.changesets.outputs.publishedPackages }}"
echo "Has Changesets: ${{ steps.changesets.outputs.hasChangesets }}"
echo "Pull Request Number: ${{ steps.changesets.outputs.pullRequestNumber }}"
21 changes: 0 additions & 21 deletions packages/changed-elements-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
# Changelog

## 0.12.0

### Minor Changes

#### [0.12.0](https://github.com/iTwin/changed-elements-react/tree/v0.12.0/packages/changed-elements-react) - 2025-01-17

- Added experimental React component for the new Named Version selector. Its name or API is not stable yet, but you can try it out the following way.

```TypeScript
import { NamedVersionSelectorWidget } from "@itwin/changed-elements-react/experimental";

[...]

return (
<VersionCompareContext iModelsClient={iModelsClient}>
<NamedVersionSelectorWidget iModel={iModel} />
</VersionCompareContext>
);
}
```

## 0.11.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/changed-elements-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/changed-elements-react",
"version": "0.12.0",
"version": "0.11.4",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
Loading