From 43ee9750dd652c17aca19833425ab97d4f230be4 Mon Sep 17 00:00:00 2001 From: Robert Chu Date: Wed, 31 Jul 2024 15:21:25 -0700 Subject: [PATCH] Update cd.yml --- .github/workflows/cd.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index afacd2a..ea95613 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,19 +33,21 @@ jobs: cache: yarn registry-url: "https://registry.npmjs.org" token: ${{ secrets.NPM_TOKEN }} + scope: "term-finance" - run: | - echo npmAuthToken: "$NODE_AUTH_TOKEN" >> .yarnrc.yml + cat << EOF >> .yarnrc.yml + + npmScopes: + term-finance: + npmRegistryServer: https://registry.npmjs.org + npmAuthToken: ${{ secrets.NPM_TOKEN }} + npmAlwaysAuth: true + EOF - run: yarn install --immutable - run: yarn build:hardhat - run: yarn build:tsc - - run: | - yarn npm login - yarn npm whoami - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: yarn npm whoami - run: yarn npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: yarn version patch - name: Create Pull Request uses: peter-evans/create-pull-request@v6