Skip to content

Commit

Permalink
If publishing a branch outside of main, tag as next
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Dec 31, 2022
1 parent 810ad02 commit e6bc1bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,22 @@ jobs:
git add .
git commit -m "${{ github.event.release.tag_name }}"
- name: Publish
- name: Publish Main
if: ${{ github.ref == 'refs/heads/main'}}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
pnpm -F @ensdomains/thorin publish
- name: Publish Next
if: ${{ github.ref != 'refs/heads/main'}}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
pnpm -F @ensdomains/thorin publish --tag next --no-git-checks
- name: Push changes
run: git push
env:
Expand Down

0 comments on commit e6bc1bb

Please sign in to comment.