Remove RN canary build and workflow (#41) #27
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
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v5 | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest-16-cores | |
| outputs: | |
| published: ${{ steps.changesets.outputs.published }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| with: | |
| token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| - name: Set up Git | |
| env: | |
| TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| run: | | |
| # Configure git | |
| git config --global url."https://ci-stytch:${TOKEN}@github.com/stytchauth".insteadOf "https://github.com/stytchauth" | |
| git config --global user.email "ci-stytch@stytch.com" | |
| git config --global user.name "ci-stytch" | |
| - name: Setup Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version-file: .nvmrc | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'yarn' | |
| # This step is needed because npm only supported OIDC publishing with v11.15.1 and setup-node | |
| # installs an older version | |
| - name: Update npm | |
| run: | | |
| npm install -g npm@latest | |
| npm --version | |
| - name: Install Dependencies | |
| run: yarn | |
| - name: Build | |
| run: yarn build | |
| - name: Create Release Pull Request or Publish | |
| id: changesets | |
| uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0 | |
| with: | |
| setupGitUser: false | |
| publish: yarn changeset publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| NPM_TOKEN: '' | |
| NPM_CONFIG_PROVENANCE: false | |
| update_old_docs: | |
| name: Update old docs | |
| needs: release | |
| if: needs.release.outputs.published == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Trigger old docs update | |
| run: | | |
| # Trigger the docs workflow to update documentation and changelogs | |
| gh workflow run js-sdk-docs.yml \ | |
| --repo stytchauth/docs \ | |
| --ref main \ | |
| --field js_sdk_ref=main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| update_mintlify_docs: | |
| name: Update Mintlify docs | |
| needs: release | |
| if: needs.release.outputs.published == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Trigger Mintlify docs update | |
| run: | | |
| # Trigger the mintlify-docs workflow to update changelogs | |
| gh workflow run js-sdk-docs.yml \ | |
| --repo stytchauth/mintlify-docs \ | |
| --ref main \ | |
| --field js_sdk_ref=main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |