Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
priyagupta108 committed Jan 30, 2024
1 parent ee55aca commit 89f0934
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ jobs:
node-version: 20
cache: 'yarn'
registry-url: https://npm.pkg.github.com/
scope: '@priyagupta108'

- name: Prepare NPM credentials
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: yarn workspaces focus --all --production
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
YARN_REGISTRY: 'https://npm.pkg.github.com'

1 change: 0 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
yarnPath: .yarn/releases/yarn-4.0.2.cjs
npmPublishRegistry: "https://npm.pkg.github.com"

0 comments on commit 89f0934

Please sign in to comment.