Merge pull request #165 from cloudflare/cina/fix-release-workflow-pt2

Build action before pushing dist-tags
This commit is contained in:
Cina Saffary 2023-08-31 10:55:48 -05:00 committed by GitHub
commit 416205365a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,10 +39,14 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag & Release Action - name: Build action
if: steps.changesets.outputs.published == 'true' if: steps.changesets.outputs.published == 'true'
run: npm run build
- name: Push dist-tags
if: steps.changesets.outputs.published == 'true'
uses: JasonEtco/build-and-tag-action@v2
with: with:
tag_name: v${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }} tag_name: v${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}
uses: JasonEtco/build-and-tag-action@v2
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}