Skip to content

Commit

Permalink
chore: restoring npm
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Aug 27, 2024
1 parent 75ac0b2 commit fb89da4
Show file tree
Hide file tree
Showing 4 changed files with 12,516 additions and 5,422 deletions.
62 changes: 25 additions & 37 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,22 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 18
scope: "@subtopia-algo"
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml
cache: "npm"
cache-dependency-path: ./package-lock.json

- name: Install dependencies
run: npm ci

- name: Run build
run: pnpm run build
run: npm run build

- name: Lint
run: pnpm run lint:scripts
run: npm run lint:scripts

unit-tests:
name: Integration tests
Expand All @@ -64,22 +61,19 @@ jobs:
python-version: ">=3.11 <3.12"
poetry-version: 1.7.1

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
scope: "@subtopia-algo"
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml
cache: "npm"
cache-dependency-path: ./package-lock.json

- name: Install dependencies
run: npm ci

- name: Run tests
run: pnpm run test:integration
run: npm run test:integration

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v4
Expand All @@ -98,12 +92,6 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Setup node
uses: actions/setup-node@v4
with:
Expand All @@ -112,8 +100,11 @@ jobs:
cache: "npm"
cache-dependency-path: ./package-lock.json

- name: Install dependencies
run: npm ci

- name: Build docs
run: pnpm run docs
run: npm run docs

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand All @@ -135,25 +126,22 @@ jobs:
fetch-depth: 0
persist-credentials: false # <--- override default gh token

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
scope: "@subtopia-algo"
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml
cache: "npm"
cache-dependency-path: ./package-lock.json

- name: Install dependencies
run: npm ci

- name: Run build
run: pnpm run build
run: npm run build

- name: release
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm run release
run: npm run release
Loading

0 comments on commit fb89da4

Please sign in to comment.