Skip to content

Commit 54e7722

Browse files
committedJan 20, 2022
chore: fix publish command
1 parent 85e23eb commit 54e7722

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ jobs:
114114
with:
115115
node-version: lts/*
116116
- uses: ipfs/aegir/actions/cache-node-modules@master
117-
- run: npm publish
117+
- if: ${{ steps.release.outputs.release_created }}
118+
run: npm publish
118119
env:
119-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
120-
if: ${{ steps.release.outputs.release_created }}
121-
- run: |
120+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
121+
- if: ${{ !steps.release.outputs.release_created }}
122+
run: |
122123
npm version `node -p -e "require('./package.json').version"`-`git rev-parse --short HEAD` --no-git-tag-version
123124
npm publish --tag next
124125
env:
125-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
126-
if: ${{ !steps.release.outputs.release_created }}
126+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.