-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Trajan0x <[email protected]>
- Loading branch information
Showing
110 changed files
with
199,514 additions
and
18,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Vercel Preview Deployment | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
VERCEL_TOKEN: '${{ secrets.VERCEL_TOKEN }}' | ||
VERCEL_ORG_ID: '${{ secrets.VERCEL_ORG_ID }}' | ||
VERCEL_PROJECT_ID: '${{ secrets.DOCS_VERCEL_PROJECT_ID }}' | ||
WORKING_DIRECTORY: 'packages/docs' | ||
NODE_ENV: 'production' | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
jobs: | ||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Read .nvmrc | ||
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | ||
id: nvmrc | ||
|
||
- name: 'Use NodeJS by nvmrc' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{steps.nvmrc.outputs.NVMRC}}' | ||
cache: 'yarn' | ||
|
||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build Project Artifacts | ||
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Publish Lerna | ||
on: | ||
pull_request: | ||
types: [closed] | ||
paths: | ||
- 'packages/**' | ||
branches: | ||
- development | ||
- main | ||
|
||
jobs: | ||
publish: | ||
# TODO: remove true at the end | ||
if: github.event.pull_request.merged == true || true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
- name: Read .nvmrc | ||
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | ||
id: nvmrc | ||
|
||
- name: 'Use NodeJS by nvmrc' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{steps.nvmrc.outputs.NVMRC}}' | ||
cache: 'yarn' | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install Node Dependencies | ||
run: yarn install --immutable --immutable-cache --check-cache | ||
|
||
- name: Authenticate with private NPM package | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
echo "always-auth=true" >> ~/.npmrc | ||
- name: 'Version and publish' # Interesting step | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# we're not authed with any repository yet so this shouldn't do anything | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor}}@users.noreply.github.com" | ||
if [ ${{ github.base_ref }} = development ]; then | ||
npx lerna version --conventional-commits --conventional-prerelease --preid beta --yes | ||
else | ||
npx lerna version --conventional-commits --conventional-graduate --yes | ||
fi | ||
npx lerna publish from-git --yes --no-verify-access |
Oops, something went wrong.