From 3ce75f9b7252cd2d38482c0d8c1077b560314f1f Mon Sep 17 00:00:00 2001 From: Carlos Gomes Date: Wed, 29 Nov 2023 20:10:13 +0100 Subject: [PATCH] ci: fix pre-post scripts not running with pnpm --- .github/workflows/npm-publish.yml | 3 +++ .npmrc | 1 + .releaserc.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9a8956e..9b464f8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -48,6 +48,9 @@ jobs: name: dist path: dist + - run: ls -l + - run: ls -l dist/ + - run: SHELL=bash pnpm setup - run: pnpm add -g semantic-release @semantic-release/git conventional-changelog-conventionalcommits diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..6c59086 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +enable-pre-post-scripts=true diff --git a/.releaserc.json b/.releaserc.json index c2ffb1f..5cd2124 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -42,7 +42,7 @@ "@semantic-release/npm", { "npmPublish": true, - "pkgRoot": "./dist" + "pkgRoot": "dist" } ], "@semantic-release/github",