From b01ce539b7484c2e4090f761c636ec3fdc5dcffd Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Wed, 6 Sep 2023 13:06:52 +0200 Subject: [PATCH] chore: package rename --- .github/workflows/release-package.yml | 17 ++++++++++------- packages/algorithm/package.json | 2 +- packages/playground/package.json | 2 +- packages/playground/src/pages/hello/script.ts | 2 +- .../playground/src/presenters/graph/plan.tsx | 2 +- packages/playground/src/utils/graph.ts | 2 +- pnpm-lock.yaml | 2 +- 7 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index d97c123..300bd76 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -64,7 +64,11 @@ jobs: runs-on: ubuntu-latest needs: [build, update-release-draft] permissions: - contents: write + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v3 with: @@ -73,12 +77,11 @@ jobs: with: name: lib path: ./ - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@4.0.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - folder: packages/playground/dist + - name: Deploy to GitHub Pages + working-directory: ./packages/playground/dist + id: deployment + uses: actions/deploy-pages@v2 + release-npm: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest diff --git a/packages/algorithm/package.json b/packages/algorithm/package.json index 08a51f6..e462184 100644 --- a/packages/algorithm/package.json +++ b/packages/algorithm/package.json @@ -20,7 +20,7 @@ ], "private": false, "main": "./dist/cjs/index.js", - "name": "bob-the-algorithm", + "name": "@bob-the-algorithm/core", "scripts": { "build": "tsc --build configs/tsconfig.libs.json" }, diff --git a/packages/playground/package.json b/packages/playground/package.json index fad1c2f..1ee535b 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -10,7 +10,7 @@ "preview": "vite preview" }, "dependencies": { - "bob-the-algorithm": "workspace:^", + "@bob-the-algorithm/core": "workspace:^", "date-fns": "^2.30.0", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/packages/playground/src/pages/hello/script.ts b/packages/playground/src/pages/hello/script.ts index bfa9ab3..2f78d36 100644 --- a/packages/playground/src/pages/hello/script.ts +++ b/packages/playground/src/pages/hello/script.ts @@ -1,4 +1,4 @@ -import { calulation, plugins } from 'bob-the-algorithm'; +import { calulation, plugins } from '@bob-the-algorithm/core'; import { createWorker } from '../../features/runner/worker'; import { convertResult } from '../../utils/graph'; diff --git a/packages/playground/src/presenters/graph/plan.tsx b/packages/playground/src/presenters/graph/plan.tsx index f01c7ed..8a231c8 100644 --- a/packages/playground/src/presenters/graph/plan.tsx +++ b/packages/playground/src/presenters/graph/plan.tsx @@ -1,4 +1,4 @@ -import { GraphNode } from 'bob-the-algorithm'; +import { GraphNode } from '@bob-the-algorithm/core'; import { useMemo } from 'react'; import { ConvertedResult } from '../../utils/graph'; import { format } from 'date-fns'; diff --git a/packages/playground/src/utils/graph.ts b/packages/playground/src/utils/graph.ts index 7f04e67..6205099 100644 --- a/packages/playground/src/utils/graph.ts +++ b/packages/playground/src/utils/graph.ts @@ -1,4 +1,4 @@ -import { CalulationResult } from 'bob-the-algorithm'; +import { CalulationResult } from '@bob-the-algorithm/core'; function msToHMS(ms: number) { // 1- Convert to seconds: diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6915ab..150149e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,7 +30,7 @@ importers: packages/playground: dependencies: - bob-the-algorithm: + '@bob-the-algorithm/core': specifier: workspace:^ version: link:../algorithm date-fns: