fix: port over isHydrated work to legacy Code component (#1206)
#1110
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 | |
| - beta | |
| - v6 | |
| jobs: | |
| Release: | |
| if: "!contains(github.event.head_commit.message, 'SKIP CI')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Setup the git repo & Node environemnt. | |
| # | |
| - name: Checkout branch (${{ github.ref }}) | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false # install breaks with persistant creds! | |
| - name: Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Update npm | |
| run: npm i -g npm@10 | |
| - name: Install dependencies | |
| run: | | |
| npm ci | |
| npm run build --if-present | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: true | |
| # Build, version, and tag a new release. | |
| # | |
| - name: Publish release | |
| run: npm run release # configured in .releaserc | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} # auth push to remote repo | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GH_TOKEN }} # auth publish to registry | |
| # Push release changes to the remote. | |
| # | |
| - name: Push to remote | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |