Skip to content

Commit

Permalink
Merge pull request #9 from dkonasov/docs
Browse files Browse the repository at this point in the history
added docs
  • Loading branch information
dkonasov authored Apr 27, 2024
2 parents d3d8432 + 57e01d1 commit a4292cb
Show file tree
Hide file tree
Showing 45 changed files with 21,704 additions and 2,900 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
with:
node-version: '20'
- name: Install dependencies
run: npm ci
run: npm ci -w react-ux-semantics
- name: Run linter
run: npm run lint
run: npm run lint -w react-ux-semantics
test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -26,4 +26,4 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
run: npm run test -w react-ux-semantics
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
- name: install deps
run: npm i
- name: build
run: npm run build
run: npm run build -w react-ux-semantics
- name: publish
run: npm publish
run: npm publish -w react-ux-semantics
34 changes: 34 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- main
jobs:
build_docs:
name: prepare_docs_artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run build -w react-ux-semantics-docs
- uses: actions/upload-artifact@v4
with:
name: github-pages
path: react-ux-semantics-docs/build
deploy_docs:
needs: build_docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading

0 comments on commit a4292cb

Please sign in to comment.