Skip to content

Commit

Permalink
Merge pull request #24 from pragmasoft-ua/test
Browse files Browse the repository at this point in the history
fix npm publish job
  • Loading branch information
RomanenkoStud authored Nov 2, 2023
2 parents fe8b308 + 5a0d126 commit f2195c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Install dependencies
if: steps.cache-main-dist.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
run: npm install -w @pragmasoft-ukraine/kite-chat-docs

- name: Analyze Component
if: steps.cache-main-dist.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -163,7 +163,6 @@ jobs:
path: ./packages/kite-chat-docs/dist/

publish_kite_chat:
needs: build_main
runs-on: ubuntu-latest
if: github.event.ref == 'refs/heads/main'
steps:
Expand All @@ -176,10 +175,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org/'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install
run: |
npm install -w @pragmasoft-ukraine/kite-chat-component
npm install -w @pragmasoft-ukraine/kite-chat
- name: Build Kite Chat component
run: npm run build -w @pragmasoft-ukraine/kite-chat-component
Expand All @@ -196,6 +197,7 @@ jobs:
npm publish --access public -w @pragmasoft-ukraine/kite-chat
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

deploy:
needs: [build_main, build_test]
Expand Down

0 comments on commit f2195c3

Please sign in to comment.