From 6b34be1bc28e354a681ed3188b8b1ea8a2e37b55 Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Tue, 6 Aug 2019 17:58:43 -0400 Subject: [PATCH] Npm and GPR samples --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 45b13375..a7f4e993 100644 --- a/README.md +++ b/README.md @@ -39,21 +39,27 @@ jobs: - run: npm test ``` -Set up auth with npm: +Publish to npmjs and GPR with npm: ```yaml steps: - uses: actions/checkout@master - uses: actions/setup-node@v1 with: version: '10.x' - registry-url: + registry-url: 'https://registry.npmjs.org' - run: npm install - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} +- uses: actions/setup-node@v1 + with: + registry-url: 'https://npm.pkg.github.com' +- run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -Set up auth with yarn: +Publish to npmjs and GPR with yarn: ```yaml steps: - uses: actions/checkout@master @@ -66,6 +72,12 @@ steps: - run: yarn publish env: NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} +- uses: actions/setup-node@v1 + with: + registry-url: 'https://npm.pkg.github.com' +- run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` # License