chore: remove excess pb-ws logs #6126
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: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Check Fern API is valid | |
run: fern check | |
# TODO: Re-enable once https://github.com/fern-api/fern/pull/2551 is resolved | |
# - 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 |