-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
8,370 additions
and
5,735 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
on: push | ||
|
||
jobs: | ||
check: | ||
name: Test and release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-pnpm-modules | ||
with: | ||
path: ~/.pnpm-store | ||
# package.json is not tracked so we can reuse pnpm global store | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }} | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: 6.9.1 | ||
run_install: true | ||
|
||
- name: Run typecheck | ||
run: pnpm typecheck | ||
|
||
- name: Run tests | ||
run: pnpm test | ||
|
||
- name: Run linter | ||
uses: reviewdog/action-eslint@v1 | ||
with: | ||
reporter: github-pr-review | ||
eslint_flags: 'src/**/*.{ts,tsx}' | ||
|
||
- name: Compile the code | ||
run: pnpm compile | ||
|
||
- name: Release | ||
run: pnpm release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# NPM # | ||
/node_modules | ||
.pnpm-debug.log | ||
|
||
# Used to test the build process | ||
styleguide/* | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
{ | ||
"description": "This is an empty project used as the destination of netlify npm install." | ||
} |
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,5 @@ | ||
#!/bin/bash | ||
set -xeuo pipefail | ||
test "$CI" = true || exit 1 | ||
npx pnpm install -r --store-dir=node_modules/.pnpm-store | ||
npx pnpm build |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Workarround netlify with pnpm | ||
# See: https://github.com/netlify/build/issues/1633 | ||
|
||
[build] | ||
command = "./etc/netlify/netlify.sh" | ||
[build.environment] | ||
# See https://community.netlify.com/t/using-pnpm-and-pnpm-workspaces/2759 | ||
NPM_FLAGS="--prefix=/dev/null" | ||
NPM_FLAGS="--prefix=./etc/netlify/empty-project/" |
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
Oops, something went wrong.