Skip to content

Commit

Permalink
fix(ci): add artifact upload after node-build on release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianpaquier committed May 1, 2024
1 parent 668f6fc commit b691b62
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ jobs:
bun-version: 1.1.6
- run: bun install --frozen-lockfile
- run: bun run build
- uses: actions/upload-artifact@v4
with:
name: node-build
path: dist
retention-days: 1

release:
name: Release
Expand All @@ -101,6 +106,10 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/download-artifact@v4
with:
name: node-build
path: dist
# https://github.com/marketplace/actions/action-for-semantic-release
- id: semantic-release
uses: cycjimmy/semantic-release-action@v4
Expand Down
1 change: 0 additions & 1 deletion .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ plugins:
- assets:
- { path: CHANGELOG.md, label: CHANGELOG.md }
- { path: checksums.txt }
- { path: dist }
failComment: false
failTitle: false
successComment: 🎉 This issue has been resolved in version v${nextRelease.version} 🎉
Expand Down
Binary file modified bun.lockb
Binary file not shown.
26 changes: 19 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
{
"name": "@kilianpaquier/semantic-release-backmerge",
"module": "index.ts",
"module": "dist/index.js",
"type": "module",
"version": "1.0.0-alpha.1",
"packageManager": "bun@1.1.6",
"files": [
"dist/*",
"package.json",
"LICENSE",
"README.md"
],
"publishConfig": {
"access": "public"
},
"keywords": [
"semantic-release-plugin",
"backmerge"
],
"scripts": {
"build": "bun build ./index.ts --outdir . --target node",
"build": "bun build ./index.ts --outdir dist --target node",
"lint": "eslint",
"test": "bun test --coverage"
},
Expand All @@ -24,7 +39,6 @@
},
"dependencies": {
"@semantic-release/error": "^4.0.0",
"@semantic-release/github": "^10.0.3",
"aggregate-error": "^5.0.0",
"bun": "^1.1.6",
"escape-string-regexp": "^5.0.0",
Expand All @@ -35,7 +49,5 @@
"parse-url": "^9.2.0",
"semantic-release": "^23.0.8",
"semver": "^7.6.0"
},
"packageManager": "bun@1.1.6",
"version": "1.0.0-alpha.1"
}
}
}

0 comments on commit b691b62

Please sign in to comment.