Skip to content

Commit 2660e3e

Browse files
committed
docs
1 parent bfe3f00 commit 2660e3e

4 files changed

Lines changed: 63 additions & 6 deletions

File tree

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": []

.github/workflows/docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
paths:
6+
- "docs/**"
7+
branches:
8+
- main
9+
# Review gh actions docs if you want to further define triggers, paths, etc
10+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
11+
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
name: Build Docusaurus
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
23+
with:
24+
version: 9
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: "pnpm"
30+
31+
- run: pnpm install
32+
- name: Build website
33+
run: pnpm docs:build
34+
35+
- name: Upload Build Artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: ./docs/build
39+
40+
deploy:
41+
name: Deploy to GitHub Pages
42+
needs: build
43+
44+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
45+
permissions:
46+
pages: write # to deploy to Pages
47+
id-token: write # to verify the deployment originates from an appropriate source
48+
49+
# Deploy to the github-pages environment
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: Release
55

66
on:
77
push:
8+
paths:
9+
- ".changeset/**"
10+
- "packages/**"
811
branches:
912
- main
1013

packages/react-image-upload/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,5 @@
4242
},
4343
"files": [
4444
"dist"
45-
],
46-
"publishConfig": {
47-
"registry": "https://registry.npmjs.org",
48-
"access": "public"
49-
}
45+
]
5046
}

0 commit comments

Comments
 (0)