chore: switch all workspace deps to use *.workspace = true #6444
Workflow file for this run
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
name: fern | |
on: push | |
defaults: | |
run: | |
# Enable fail-fast behavior | |
shell: bash -e {0} | |
jobs: | |
fern-check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm install -g fern-api | |
- name: Check Fern API is valid | |
run: ./scripts/fern/check.sh | |
# TODO: JS output is not deterministic | |
# - name: Verify generated code is up to date | |
# env: | |
# FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
# run: | | |
# ./scripts/fern/gen.sh | |
# git --no-pager diff --exit-code | |
fern-publish: | |
runs-on: ubuntu-20.04 | |
needs: | |
- fern-check | |
steps: | |
# Only run on a tagged push | |
- name: Check Tag | |
id: check-tag | |
run: | | |
if [[ ${{ github.event.ref }} =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then | |
echo "match=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Checkout repo | |
if: steps.check-tag.outputs.match == 'true' | |
uses: actions/checkout@v4 | |
- name: Publish Full | |
if: steps.check-tag.outputs.match == 'true' | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
cd sdks/full/typescript | |
npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" | |
yarn version --no-git-tag-version --new-version "${{ github.ref_name }}" | |
yarn pack --ignore-scripts -f archive.tgz | |
yarn publish --ignore-scripts archive.tgz | |
- name: Publish Runtime | |
if: steps.check-tag.outputs.match == 'true' | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
cd sdks/runtime/typescript | |
npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" | |
yarn version --no-git-tag-version --new-version "${{ github.ref_name }}" | |
yarn pack --ignore-scripts -f archive.tgz | |
yarn publish --ignore-scripts archive.tgz |