Skip to content

Commit

Permalink
chore: use nx publish command and bump permit-utils version
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Oct 30, 2023
1 parent 6bbcfc4 commit b9358af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ on:

env:
NODE_VERSION: lts/gallium
DESTINATION_PATH: dist/libs/${{ inputs.lib }}


jobs:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion libs/permit-utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b9358af

Please sign in to comment.