Skip to content

Commit

Permalink
ci: add gh pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iamogbz committed Aug 25, 2023
1 parent 3920603 commit b2582e0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# [portmanteaux](https://portmanteaux.stackblitz.io)
# [Portmanteaux 🌐](https://portmanteaux.stackblitz.io)

[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/portmanteaux)

0 comments on commit b2582e0

Please sign in to comment.