Skip to content

Commit 6bd9da5

Browse files
preview
1 parent b79f862 commit 6bd9da5

File tree

3 files changed

+108
-73
lines changed

3 files changed

+108
-73
lines changed

.github/deploy-preview.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy PR previews
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
11+
concurrency: preview-${{ github.ref }}
12+
13+
jobs:
14+
deploy-preview:
15+
runs-on: ubuntu-20.04
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- uses: ./.github/actions/install-deps
21+
22+
- name: Build with Astro
23+
run: |
24+
pnpm astro build \
25+
--site "${{ steps.pages.outputs.origin }}" \
26+
--base "${{ steps.pages.outputs.base_path }}"
27+
working-directory: packages/docs
28+
29+
- name: Deploy preview
30+
uses: rossjrw/pr-preview-action@v1
31+
with:
32+
source-dir: packages/docs/dist
File renamed without changes.

.github/workflows/build.yml

+76-73
Original file line numberDiff line numberDiff line change
@@ -4,91 +4,94 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
types: [opened, synchronize, reopened]
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
811

912
# Enabled permissions on GITHUB_TOKEN
10-
permissions:
11-
# To be able to push to the repo
12-
contents: write
13-
# To update the pr description with canary info
14-
pull-requests: write
15-
# For pr-check to create a status
16-
statuses: write
17-
# Needed to create PR statuses/checks
18-
checks: write
19-
# To post comments on PRs
20-
issues: write
13+
# permissions:
14+
# # To be able to push to the repo
15+
# contents: write
16+
# # To update the pr description with canary info
17+
# pull-requests: write
18+
# # For pr-check to create a status
19+
# statuses: write
20+
# # Needed to create PR statuses/checks
21+
# checks: write
22+
# # To post comments on PRs
23+
# issues: write
2124

2225
jobs:
2326
# Run install in one step so deps can be cached for other steps
2427
install:
2528
runs-on: ubuntu-latest
2629
steps:
2730
- uses: actions/checkout@v3
28-
- uses: ./.github/actions/install-deps
31+
# - uses: ./.github/actions/install-deps
2932

30-
build:
31-
runs-on: ubuntu-latest
32-
needs: install
33-
steps:
34-
- uses: actions/checkout@v3
35-
- uses: ./.github/actions/install-deps
36-
- uses: ./.github/actions/build-cache
37-
- run: yarn build
33+
# build:
34+
# runs-on: ubuntu-latest
35+
# needs: install
36+
# steps:
37+
# - uses: actions/checkout@v3
38+
# - uses: ./.github/actions/install-deps
39+
# - uses: ./.github/actions/build-cache
40+
# - run: yarn build
3841

39-
lint:
40-
runs-on: ubuntu-latest
41-
needs: build
42-
steps:
43-
- uses: actions/checkout@v3
44-
- uses: ./.github/actions/install-deps
45-
- uses: ./.github/actions/build-cache
46-
- run: yarn lint
42+
# lint:
43+
# runs-on: ubuntu-latest
44+
# needs: build
45+
# steps:
46+
# - uses: actions/checkout@v3
47+
# - uses: ./.github/actions/install-deps
48+
# - uses: ./.github/actions/build-cache
49+
# - run: yarn lint
4750

48-
test-types:
49-
runs-on: ubuntu-latest
50-
needs: build
51-
steps:
52-
- uses: actions/checkout@v3
53-
- uses: ./.github/actions/install-deps
54-
- uses: ./.github/actions/build-cache
55-
- run: yarn tsTest:custom && yarn tsTest:main
51+
# test-types:
52+
# runs-on: ubuntu-latest
53+
# needs: build
54+
# steps:
55+
# - uses: actions/checkout@v3
56+
# - uses: ./.github/actions/install-deps
57+
# - uses: ./.github/actions/build-cache
58+
# - run: yarn tsTest:custom && yarn tsTest:main
5659

57-
test:
58-
runs-on: ubuntu-latest
59-
needs: build
60-
steps:
61-
- uses: actions/checkout@v3
62-
- uses: ./.github/actions/install-deps
63-
- uses: ./.github/actions/build-cache
64-
- run: yarn test
60+
# test:
61+
# runs-on: ubuntu-latest
62+
# needs: build
63+
# steps:
64+
# - uses: actions/checkout@v3
65+
# - uses: ./.github/actions/install-deps
66+
# - uses: ./.github/actions/build-cache
67+
# - run: yarn test
6568

66-
test-browser:
67-
runs-on: ubuntu-latest
68-
needs: build
69-
if: ${{ false }} # disable for now
70-
steps:
71-
- uses: actions/checkout@v3
72-
- uses: ./.github/actions/install-deps
73-
- uses: ./.github/actions/build-cache
74-
- run: yarn test:browser --ci
69+
# test-browser:
70+
# runs-on: ubuntu-latest
71+
# needs: build
72+
# if: ${{ false }} # disable for now
73+
# steps:
74+
# - uses: actions/checkout@v3
75+
# - uses: ./.github/actions/install-deps
76+
# - uses: ./.github/actions/build-cache
77+
# - run: yarn test:browser --ci
7578

76-
release:
77-
runs-on: ubuntu-latest
78-
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
79-
needs: build
80-
steps:
81-
- uses: actions/checkout@v3
82-
- uses: 8BitJonny/[email protected]
83-
id: PR
84-
- uses: ./.github/actions/install-deps
85-
- uses: ./.github/actions/build-cache
86-
- name: Prepare repository
87-
run: git fetch --unshallow --tags
88-
- name: Create Release
89-
run: yarn auto shipit
90-
env:
91-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92-
PROTECTED_BRANCH_REVIEWER_TOKEN: ${{ secrets.GH_TOKEN }}
93-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
94-
PR: ${{ steps.PR.outputs.number }}
79+
# release:
80+
# runs-on: ubuntu-latest
81+
# if: contains(github.event.head_commit.message , 'ci skip') == false && contains(github.event.head_commit.message , 'skip ci') == false
82+
# needs: build
83+
# steps:
84+
# - uses: actions/checkout@v3
85+
# - uses: 8BitJonny/[email protected]
86+
# id: PR
87+
# - uses: ./.github/actions/install-deps
88+
# - uses: ./.github/actions/build-cache
89+
# - name: Prepare repository
90+
# run: git fetch --unshallow --tags
91+
# - name: Create Release
92+
# run: yarn auto shipit
93+
# env:
94+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
# PROTECTED_BRANCH_REVIEWER_TOKEN: ${{ secrets.GH_TOKEN }}
96+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
97+
# PR: ${{ steps.PR.outputs.number }}

0 commit comments

Comments
 (0)