diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..aa84d42 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,40 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup + uses: actions/setup-node@v3 + with: + node-version-file: .nvmrc + - uses: pnpm/action-setup@v2.2.1 + with: + version: 8 + run_install: true + - name: Lint + run: | + pnpm lint + - name: Test + run: | + pnpm test + - name: Build + run: | + pnpm build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' + with: + github_token: ${{ secrets.GH_TOKEN }} + publish_dir: ./build diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..25d25d0 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +shamefully-hoist=false diff --git a/README.md b/README.md index 80cdc80..a58a1c2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# [portmanteaux](https://portmanteaux.stackblitz.io) +# [Portmanteaux 🌐](https://portmanteaux.stackblitz.io) [Edit on StackBlitz ⚡️](https://stackblitz.com/edit/portmanteaux)