Skip to content

Commit

Permalink
ci(publish-package): tag latest or beta based on branch
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Aug 30, 2024
1 parent 857bcf2 commit d72190a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@matterlabs'
- run: yarn
- run: yarn publish --tag ${{ github.event.release.tag_name }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}
run: |
if [[ "${{ github.event.release.target_commitish }}" == "main" ]]; then
yarn publish --tag latest --access public
elif [[ "${{ github.event.release.target_commitish }}" == "beta" ]]; then
yarn publish --tag beta --access public
fi

0 comments on commit d72190a

Please sign in to comment.