Skip to content

Commit afb81c7

Browse files
committed
chore(*): add working-directory
1 parent 758bf52 commit afb81c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,20 @@ jobs:
3030
# before deploy equivalent
3131
- run: npm run build:schematics
3232
- run: npm run build:migration
33-
# move to dist
34-
- run: cd dist/igniteui-angular
3533

36-
# update package versions
34+
# Define npm tag
3735
- run: if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
3836
- run: echo ${NPM_TAG}
3937

4038
# copy readme
4139
- run: cp ../../README.md README.md
40+
working-directory: dist/igniteui-angular
4241

4342
# Create version and publish it to npmjs
4443
- run: npm version ${VERSION} --no-git-tag-version --save --verbose
44+
working-directory: dist/igniteui-angular
45+
4546
- run: npm publish --tag ${NPM_TAG}
47+
working-directory: dist/igniteui-angular
4648
env:
4749
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)