-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add react sdk next release (#786)
## Related Issues related descope/etc#4454 ## Related PRs tbd ## Description - add next release to react sdk to be consumed by the console app
- Loading branch information
Showing
2 changed files
with
420 additions
and
309 deletions.
There are no files selected for viewing
This file contains 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,56 @@ | ||
name: Release Next | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
NODE_VERSION: 18.10.0 | ||
PNPM_VERSION: 8 | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
name: Release Next | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get token | ||
id: get_token | ||
uses: tibdex/github-app-token@v2 | ||
with: | ||
private_key: ${{ secrets.RELEASE_APP_PEM }} | ||
app_id: ${{ secrets.RELEASE_APP_ID }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# persist-credentials: false | ||
token: ${{ steps.get_token.outputs.token }} | ||
ref: ${{ github.ref }} | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: https://registry.npmjs.org/ | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile --ignore-scripts | ||
env: | ||
CI: true | ||
- name: Build | ||
run: npm run version:ci | ||
env: | ||
CI: true | ||
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }} | ||
- name: Run pnpm publish | ||
run: | | ||
pnpm --filter "@descope/react-sdk" exec npm version "0.0.0-next-$(git rev-parse HEAD)" --git-tag-version=false | ||
pnpm --filter "@descope/react-sdk" publish --access=public --no-git-checks --tag=next | ||
env: | ||
CI: true | ||
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_REGISTRY }} |
Oops, something went wrong.