From 1a66b7394d7e6a20d1815b0e10fcd1653323e3f7 Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Wed, 3 May 2023 12:30:12 +0200 Subject: [PATCH] revert .yarnrc.yml (#291) --- .github/workflows/publish.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 007ae59f..0b72704e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,22 +40,29 @@ jobs: # Make sure chopsticks and executor version are the same - run: node -e "assert(require('./packages/chopsticks/package.json').version === require('./executor/pkg/package.json').version, 'Chopsticks and executor version not the same. Please update Cargo.toml version')" + # Writes token to .yarnrc.yml. If written directly in .yarnrc.yml, it will cause an error + - run: | + echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml + - name: Publish @acala-network/chopsticks run: yarn workspace @acala-network/chopsticks npm publish --tolerate-republish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # - name: Publish @acala-network/chopsticks-core # run: yarn workspace @acala-network/chopsticks-core npm publish --tolerate-republish --access public # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + # NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Publish @acala-network/chopsticks-executor run: yarn workspace @acala-network/chopsticks-executor npm publish --tolerate-republish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Publish @acala-network/chopsticks-testing run: yarn workspace @acala-network/chopsticks-testing npm publish --tolerate-republish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + + - run: | + git checkout ./.yarnrc.yml