Skip to content

Commit e8d4128

Browse files
committed
Refactor publish workflow: update build and test steps for consistency and correct version path
1 parent f316743 commit e8d4128

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
- name: Build and Test
2222
run: |
2323
npm install
24-
npm run build
25-
npm pack
24+
npm run pack
2625
cd test-app
2726
npm install
2827
npm install ../dist/imagekit-angular/imagekit-angular-*.tgz --no-save
@@ -45,10 +44,11 @@ jobs:
4544
run: |
4645
npm install
4746
npm run build
47+
cd dist/imagekit-angular
4848
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
4949
# print the NPM user name for validation
5050
npm whoami
51-
VERSION=$(node -p "require('./projects/imagekit-angular/package.json').version" )
51+
VERSION=$(node -p "require('./package.json').version" )
5252
# Only publish stable versions to the latest tag
5353
if [[ "$VERSION" =~ ^[^-]+$ ]]; then
5454
NPM_TAG="latest"

0 commit comments

Comments
 (0)