Skip to content

Commit

Permalink
ci(release): zip dist and upload to workflow artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOricil committed Oct 13, 2024
1 parent 0e15566 commit 2e8b702
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Build
run: npm run build

- name: Zip dist
run: zip -r dist.zip dist

- name: Attest
uses: actions/[email protected]
with:
Expand All @@ -58,3 +61,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

- name: Upload Artifact
uses: actions/[email protected]
with:
name: dist
path: dist.zip
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[
"@semantic-release/github",
{
"assets": ["dist/**"]
"assets": ["dist.zip"]
}
]
]
Expand Down

0 comments on commit 2e8b702

Please sign in to comment.