Skip to content

Commit

Permalink
next docs
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 13, 2024
1 parent 3c87164 commit 4c1771f
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/3-bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body:
attributes:
label: Reproduction
description: |
Please provide a link to a repo or Stackblitz that can reproduce the problem you ran into. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided within a reasonable time-frame, the issue will be closed.
Please provide a link to a repo or StackBlitz that can reproduce the problem you ran into. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided within a reasonable time-frame, the issue will be closed.
placeholder: Reproduction
validations:
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build-preview:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -30,4 +30,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: preview-build
path: sites/docs/.svelte-kit/cloudflare
path: docs/.svelte-kit/cloudflare
35 changes: 14 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ on:
push:
branches:
- main
- next
paths-ignore:
- ".changeset/**"
- README.md
- ".vscode/**"
- CHANGELOG.md
pull_request:
paths-ignore:
- ".changeset/**"
- README.md
- ".vscode/**"
- CHANGELOG.md

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
Expand All @@ -13,7 +24,7 @@ concurrency:
jobs:
Check:
name: Run svelte-check
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -29,7 +40,7 @@ jobs:
run: pnpm check

Lint:
runs-on: ubuntu-latest
runs-on: macos-latest
name: Lint
steps:
- uses: actions/checkout@v4
Expand All @@ -42,22 +53,4 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint

Test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Test
run: pnpm test
- run: pnpm lint
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
deploy-preview:
runs-on: ubuntu-latest
runs-on: macos-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download build artifact
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on:
branches:
- main
paths:
- sites/docs/**
- docs/**
- packages/formsnap/**
workflow_dispatch:

jobs:
deploy-production:
runs-on: ubuntu-latest
runs-on: macos-latest
permissions:
contents: read
deployments: write
Expand All @@ -36,5 +37,5 @@ jobs:
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: formsnap
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
workingDirectory: docs
deploymentName: Production
28 changes: 28 additions & 0 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Preview Release
on:
pull_request:
types: [ready_for_review, synchronize, opened, labeled]
paths: [packages/**]

jobs:
preview-release:
if: github.repository == 'svecosystem/formsnap' && contains(github.event.pull_request.labels.*.name, 'publish:preview')
timeout-minutes: 5
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: install dependencies
run: pnpm install

- name: build
run: pnpm build:packages

- name: publish preview
run: |
pnpx [email protected] publish --pnpm --compact './packages/*'
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ jobs:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Release
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
Expand All @@ -35,8 +32,6 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
commit: "chore(release): version package"
title: "chore(release): version package"
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4c1771f

Please sign in to comment.