Skip to content

Commit

Permalink
ci: fix/improve npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kopach committed Nov 12, 2024
1 parent 10ba77c commit 80f6747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ jobs:
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: '18.20.0'
registry-url: https://registry.npmjs.org
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- run: pnpm nx run-many --target=lint --all
- run: pnpm nx run-many --target=test --all
- run: pnpm nx run-many --target=build --all
- run: pnpm nx lint packages-${{ matrix.packages_to_publish }}
- run: pnpm nx test packages-${{ matrix.packages_to_publish }}
- run: pnpm nx build packages-${{ matrix.packages_to_publish }}

- run: npm whoami

Expand Down
2 changes: 1 addition & 1 deletion packages/create/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "create",
"name": "packages-create",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/create/src",
"projectType": "library",
Expand Down

0 comments on commit 80f6747

Please sign in to comment.