Skip to content

Commit f8cfa57

Browse files
committed
Initialize commit
0 parents  commit f8cfa57

File tree

184 files changed

+21039
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+21039
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,json,yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.yarn/** linguist-vendored
2+
/.yarn/releases/* binary
3+
/.yarn/plugins/**/* binary
4+
/.pnp.* binary linguist-generated

.github/workflows/release.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
tags:
8+
- "v*.*.*"
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
contents: write
16+
deployments: write
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- run: corepack enable
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
cache: "yarn"
27+
cache-dependency-path: "yarn.lock"
28+
node-version-file: ".nvmrc"
29+
30+
- if: github.ref_type == 'branch'
31+
run: |
32+
jq \
33+
--arg build "$GITHUB_RUN_NUMBER" \
34+
--arg commit "${GITHUB_SHA::8}" \
35+
'.version = .version + "-dev." + $build + "+" + $commit' \
36+
packages/cli/package.json > packages/cli/package.json.tmp
37+
mv packages/cli/package.json.tmp packages/cli/package.json
38+
39+
- run: yarn install
40+
41+
- name: Build and pack CLI
42+
run: |
43+
yarn workspace docflow build
44+
mkdir -p out
45+
cd packages/cli
46+
yarn pack --out ../../out
47+
48+
- id: extract-changelog
49+
uses: dahlia/submark@5a5ff0a58382fb812616a5801402f5aef00f90ce
50+
with:
51+
input-file: CHANGELOG.md
52+
heading-level: 2
53+
heading-title-text: version ${{ github.ref_name }}
54+
ignore-case: true
55+
omit-heading: true
56+
57+
- run: cat ${{ steps.extract-changelog.outputs.output-file }}
58+
59+
- name: Release
60+
uses: softprops/action-gh-release@v2
61+
if: startsWith(github.ref, 'refs/tags/')
62+
with:
63+
body_path: ${{ steps.extract-changelog.outputs.output-file }}
64+
repository: ${{ github.repository }}
65+
generate_release_notes: false
66+
token: ${{ secrets.GITHUB_TOKEN }}
67+
files: out/*.tgz
68+
69+
- name: Publish to registry
70+
if: |
71+
github.event_name == 'push' &&
72+
(github.ref_type == 'tag' || github.ref == 'refs/heads/main')
73+
run: |
74+
set -ex
75+
npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
76+
npm whoami
77+
if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
78+
npm publish --provenance --access public *.tgz
79+
else
80+
npm publish --provenance --access public --tag dev *.tgz
81+
fi
82+
env:
83+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
84+
working-directory: ${{ github.workspace }}/out/
85+
86+
deploy-docs:
87+
if: github.event_name == 'push' && github.ref_type == 'tag'
88+
runs-on: ubuntu-latest
89+
steps:
90+
- name: Checkout
91+
uses: actions/checkout@v4
92+
93+
- run: corepack enable
94+
95+
- uses: actions/setup-node@v4
96+
with:
97+
cache: "yarn"
98+
cache-dependency-path: "yarn.lock"
99+
node-version-file: ".nvmrc"
100+
101+
- name: Install dependencies
102+
run: yarn install
103+
104+
- name: Deploy a docs site
105+
run: |-
106+
cd docs
107+
yarn vercel deploy --yes --prod --token=${{ secrets.VERCEL_TOKEN }}

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# yarn
2+
.yarn/*
3+
!.yarn/patches
4+
!.yarn/plugins
5+
!.yarn/releases
6+
!.yarn/sdks
7+
!.yarn/versions
8+
.pnp.*
9+
10+
# build
11+
dist
12+
esm
13+
14+
# caches
15+
node_modules
16+
17+
docs/.vitepress/cache
18+

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.15.1

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"arcanis.vscode-zipfs",
4+
"dbaeumer.vscode-eslint"
5+
]
6+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"search.exclude": {
3+
"**/.yarn": true,
4+
"**/.pnp.*": true
5+
},
6+
"typescript.tsdk": ".yarn/sdks/typescript/lib",
7+
"typescript.enablePromptUseWorkspaceTsdk": true,
8+
"eslint.nodePath": ".yarn/sdks"
9+
}

.yarn/plugins/@yarnpkg/plugin-workspace-since.cjs

Lines changed: 40 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)