Skip to content

Commit

Permalink
Merge pull request #165 from cloudflare/cina/fix-release-workflow-pt2
Browse files Browse the repository at this point in the history
Build action before pushing dist-tags
  • Loading branch information
1000hz committed Sep 14, 2023
2 parents 4528b66 + 7292a4a commit 71152a4
Show file tree
Hide file tree
Showing 6 changed files with 4,444 additions and 111 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Tag & Release Action
- name: Build action
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:
tag_name: v${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}
uses: JasonEtco/build-and-tag-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
Loading

0 comments on commit 71152a4

Please sign in to comment.