Skip to content

Commit

Permalink
chore: update publish command [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigo authored and Rigo committed Aug 5, 2023
1 parent 4056777 commit 9cf0bcb
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: npm install -g lerna
- run: yarn install
- run: cd packages/lib && yarn build
- name: Install dependencies
run: yarn install

- name: Publish package on NPM
- name: Build the package
working-directory: ./packages/lib
run: yarn build

- name: Configure NPM
working-directory: ./packages/lib
run: |
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" >> .npmrc
echo "always-auth: true" >> .npmrc
- name: Publish on NPM
working-directory: ./packages/lib
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9cf0bcb

Please sign in to comment.