Skip to content

Commit

Permalink
fix yml script monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisnsns committed Dec 20, 2023
1 parent 56f6b13 commit 7bcc276
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,24 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies for JS SDK
run: npm install
working-directory: packages/sdk/js
- name: Install dependencies
run: npm install

- name: Publish JS SDK to NPM
run: npm publish
working-directory: packages/sdk/js
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish JS SDK to NPM
run: npm publish --workspace=sdk/js
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install dependencies for React components
run: npm install
working-directory: packages/ui/lib

- name: Publish React components to NPM
run: npm publish
working-directory: packages/ui/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish React components to NPM
run: npm publish --workspace=ui/lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7bcc276

Please sign in to comment.