diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f677064fb7..eeec8057ae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,6 +23,7 @@ on: env: NODE_VERSION: lts/gallium + DESTINATION_PATH: dist/libs/${{ inputs.lib }} jobs: @@ -41,23 +42,16 @@ jobs: registry-url: 'https://registry.npmjs.org' cache: yarn - - name: What's in .npmrc? - run: cat /home/runner/work/_temp/.npmrc - - name: Install Nx run: yarn add nx - - name: Build - run: yarn nx build ${{ inputs.lib }} - - - name: Copy .npmrc to lib folder - run: cp /home/runner/work/_temp/.npmrc dist/libs/${{ inputs.lib }}/ + - name: Create destination path + run: mkdir -p ${{ env.DESTINATION_PATH }} - - name: Show contents of lib folder - run: echo `ls -C dist/libs/${{ inputs.lib }}/` + - name: Copy .npmrc to destination + run: cp /home/runner/work/_temp/.npmrc ${{ env.DESTINATION_PATH }}/ - - name: Publish (without helper script) - working-directory: dist/libs/${{ inputs.lib }} - run: npm publish --access public --tag ${{ inputs.tag }} + - name: Publish + run: yarn nx publish ${{ inputs.lib }} --tag ${{ inputs.tag }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/libs/permit-utils/package.json b/libs/permit-utils/package.json index d9616d2411..c9f38ccce8 100644 --- a/libs/permit-utils/package.json +++ b/libs/permit-utils/package.json @@ -1,6 +1,6 @@ { "name": "@cowprotocol/permit-utils", - "version": "0.0.1-RC.0", + "version": "0.0.1-RC.1", "type": "module", "dependencies": { "ethers": "^5.7.2",