Skip to content

Commit

Permalink
config changeset and publish to npm and build and publish documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bertrand committed Sep 24, 2023
1 parent e37aae6 commit 3f198d7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 47 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/doc-build.yml

This file was deleted.

30 changes: 26 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,34 @@ jobs:
- name: Install Dependencies
run: pnpm install --frozen-lock

- name: Create Release Pull Request or Publish to npm
- name: Create Release Pull Request or Tag release to github
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build packages
if: steps.changesets.outputs.hasChangesets == 'false'
run: pnpm build

- name: Publish to NPM
if: steps.changesets.outputs.hasChangesets == 'false'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm changeset publish --tag

- name: Build documentation site
if: steps.changesets.outputs.hasChangesets == 'false'
run: pnpm -F crossed-docs build

- name: Setup Pages
uses: actions/configure-pages@v1

- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./apps/docs/out

- name: Deploy documentation to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 3f198d7

Please sign in to comment.