-
Notifications
You must be signed in to change notification settings - Fork 0
Sdks 4647 Versioning and Publishing flow #34
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fdf4bb0
feat(CI): add release workflow
pingidentity-gaurav 984e29c
chore(browser): remove rn-logger dep from browser package
pingidentity-gaurav 503ec24
Merge remote-tracking branch 'origin/main' into SDKS-4647
pingidentity-gaurav f0b1799
chore(ci): update yarn.lock
pingidentity-gaurav 2594747
fix(ci): address comments - 1
pingidentity-gaurav 5d5577d
Merge branch 'main' of github.com:ForgeRock/ping-react-native-sdk int…
pingidentity-gaurav 2492fbf
fix(dp): flay tests ios
pingidentity-gaurav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json", | ||
| "changelog": [ | ||
| "@changesets/changelog-github", | ||
| { | ||
| "repo": "ForgeRock/ping-react-native-sdk" | ||
| } | ||
| ], | ||
| "commit": false, | ||
| "fixed": [["@ping-identity/*"]], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "main", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # | ||
| # Copyright (c) 2026 Ping Identity Corporation. All rights reserved. | ||
| # | ||
| # This software may be modified and distributed under the terms | ||
| # of the MIT license. See the LICENSE file for details. | ||
| # | ||
| name: Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| id-token: write # required for npm provenance signing | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| # PAT required — GITHUB_TOKEN cannot push to a branch protected by required status checks. | ||
| # Required scopes: contents:write (to push version bump commit and tags). | ||
| # Do NOT grant repo-wide admin or workflow scopes — contents:write is sufficient. | ||
| token: ${{ secrets.GH_TOKEN }} | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Configure git user | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
|
|
||
| - name: Version packages | ||
| run: yarn release:version | ||
| env: | ||
| # changelog-github uses GITHUB_TOKEN to resolve PR links and author info in CHANGELOG.md | ||
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
|
||
| - name: Check lockstep | ||
| run: yarn release:check-lockstep | ||
|
|
||
| - name: Commit and push version bump | ||
| run: | | ||
| # Stage only the files changeset version touches — avoids accidentally | ||
| # committing build artifacts or install-state changes from yarn install. | ||
| git add packages/*/package.json packages/*/CHANGELOG.md .changeset | ||
| git commit -m "chore: version packages" | ||
| git push | ||
|
|
||
| - name: Build and publish | ||
| # changeset publish: publishes packages not yet at current version, creates git tags | ||
| # NPM_CONFIG_PROVENANCE links each package to this workflow run and source commit | ||
| run: yarn release:publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| NPM_CONFIG_PROVENANCE: true | ||
|
|
||
| - name: Push tags | ||
| # Tags are created by changeset publish — push them after publish succeeds | ||
| run: git push --follow-tags | ||
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.