Skip to content

docs: remove snapshot preference from installation instruction (#13) #11

docs: remove snapshot preference from installation instruction (#13)

docs: remove snapshot preference from installation instruction (#13) #11

name: Publish snapshot
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish-snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# https://github.com/yarnpkg/berry/issues/4014
fetch-depth: 0
- uses: ./.github/actions/setup
- run: yarn build:packages
- run: yarn workspaces foreach -At --no-private version 0.0.0-snapshot.${{ github.run_number }}+$(git rev-parse --short HEAD) --immediate
- run: scripts/publish-snapshot.sh
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}