Bump all deps, misc cleanup (#8) #27
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: publish docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/clide-js/src/**' | |
- 'README.md' | |
- '.github/workflows/docs.yml' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: install Yarn | |
run: npm i -g yarn | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: build | |
run: yarn workspace clide-js build:docs | |
- name: setup pages | |
uses: actions/configure-pages@v4 | |
- name: upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: './packages/clide-js/docs' | |
- name: deploy to github pages | |
id: deployment | |
uses: actions/deploy-pages@v3 |