Skip to content

Commit

Permalink
fix(release): it fixes release asset path config
Browse files Browse the repository at this point in the history
  • Loading branch information
danilolmc committed Nov 9, 2023
1 parent 34cc69e commit 834e64a
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 278 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ jobs:
- name: Build
run: npm run build --if-present

- name: Create Zip
run: mkdir temp && zip -r temp/zaity.zip lib

- name: Release
id: release_gen_step
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

- name: Prepare release assets
id: assets_preparation
if: steps.release_gen_step.outcome == 'success'
run: |
zip -r zaity.zip lib README.md package.json LICENSE logolibrary.svg
17 changes: 14 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,24 @@
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/github",
{
"assets": [
"zaity.zip",
"CHANGELOG.md"
{
"path": "temp/zaity.zip",
"label": "JS Diatribution"
},
{
"path": "CHANGELOG.md",
"label": "CHANGELOG.md"
}
]
}
]
Expand Down
Loading

0 comments on commit 834e64a

Please sign in to comment.