Skip to content

Commit

Permalink
added github packages in publish-to-npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-pavlik committed Jun 13, 2023
1 parent a9a6e4b commit f6c5fd1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand All @@ -28,7 +31,10 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/

- run: yarn install --frozen-lockfile
- name: Modify .npmrc
run: echo '//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}' >> .npmrc

- run: yarn install
- run: npx lerna bootstrap
- run: npx lerna run build

Expand Down

0 comments on commit f6c5fd1

Please sign in to comment.