Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robotoer authored Jul 31, 2024
1 parent 0aded9f commit 43ee975
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43ee975

Please sign in to comment.