From d62ea56d768971b2c37acb10c33d913a2dbaf919 Mon Sep 17 00:00:00 2001 From: Marine Dunstetter Date: Wed, 7 Feb 2024 17:59:53 +0100 Subject: [PATCH] step 3: adapt the deploy and release workflows to pnpm and monorepo --- .github/workflows/deploy.yml | 6 +++--- .github/workflows/release.yml | 1 + package.json | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cda7407a..174bd5a5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,11 +15,11 @@ jobs: - name: Install and Build 🔧 run: | - yarn - yarn build + pnpm install + pnpm build:test-app - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.5.0 with: branch: gh-pages - folder: dist + folder: packages/test-app/dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb09f326..a095dee1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,5 +18,6 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm publish + working-directory: packages/ember-promise-modals env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 66714e74..534f3955 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "packages/*" ], "scripts": { + "build:test-app": "pnpm --filter test-app build", "lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"", "lint:md": "prettier --check '**/*.md'", "lint:md:fix": "prettier --write '**/*.md'",