Skip to content

Commit

Permalink
Create a monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Sep 10, 2024
1 parent 001fb43 commit 5387422
Show file tree
Hide file tree
Showing 70 changed files with 479 additions and 780 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Publish
name: Tests
on:
push:
branches: [main]
jobs:
publish:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
cache: pnpm
check-latest: true
node-version: 22
- run: npm ci
- run: npm run build
- name: Publish to npm
uses: pascalgn/[email protected]
- run: pnpm install --frozen-lockfile
- run: pnpm run -r build
- run: pnpm publish -r --access public --no-git-checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 12 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: Tests
on:
pull_request:
branches: [main]
push:
branches: [main]
paths-ignore: ['docs/**', '**/README.md']
pull_request:
paths-ignore: ['docs/**', '**/README.md']
jobs:
functional_tests:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
cache: pnpm
check-latest: true
node-version: 22
- run: npm i
- run: npm run build
- run: npm test
- run: pnpm install --frozen-lockfile
- run: pnpm run -r build
- run: pnpm run -r test
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
*.log
.DS_Store
node_modules
dist
.tests
hvps
lab
archive
node_modules
40 changes: 0 additions & 40 deletions bin/setup.sh

This file was deleted.

Loading

0 comments on commit 5387422

Please sign in to comment.