Skip to content

Commit

Permalink
Release 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Feb 4, 2024
1 parent 1cfbae3 commit a0fc02d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v3.0.2](https://github.com/felixmosh/turborepo-gh-artifacts/compare/v3.0.1...v3.0.2)

- feat: ignore 409 conflict errors [`#24`](https://github.com/felixmosh/turborepo-gh-artifacts/pull/24)
- feat: add update:major-tag script [`8aaae7b`](https://github.com/felixmosh/turborepo-gh-artifacts/commit/8aaae7b30909fc14def15e73de2035fd01213a19)
- feat: extract major tag automatically [`0dcab50`](https://github.com/felixmosh/turborepo-gh-artifacts/commit/0dcab50a0b03f6d14627ac11334d6371ad23716b)

#### [v3.0.1](https://github.com/felixmosh/turborepo-gh-artifacts/compare/v3...v3.0.1)

- fix: bump to node20, since 18 doesn't exists [`009c36c`](https://github.com/felixmosh/turborepo-gh-artifacts/commit/009c36c1bc2038c63931fa51fe983d8949d026d4)
> 29 January 2024
#### [v3](https://github.com/felixmosh/turborepo-gh-artifacts/compare/v3.0.0...v3)

> 29 January 2024
- fix: bump to node20, since 18 doesn't exists [`009c36c`](https://github.com/felixmosh/turborepo-gh-artifacts/commit/009c36c1bc2038c63931fa51fe983d8949d026d4)
- Release 3.0.1 [`44bc1d2`](https://github.com/felixmosh/turborepo-gh-artifacts/commit/44bc1d21eb11c98fd8e29f61a5ec8c7dac1a2775)

### [v3.0.0](https://github.com/felixmosh/turborepo-gh-artifacts/compare/v2.1.1...v3.0.0)

> 29 January 2024
Expand Down
14 changes: 12 additions & 2 deletions dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138388,8 +138388,18 @@ async function uploadArtifacts() {
}
await Promise.all(artifactsToUpload.map(async ({ artifactFilename, artifactId }) => {
(0,core.info)(`Uploading ${artifactFilename}`);
await client.uploadArtifact(artifactId, [external_path_default().join(cacheDir, artifactFilename)], cacheDir);
(0,core.info)(`Uploaded ${artifactFilename} successfully`);
try {
await client.uploadArtifact(artifactId, [external_path_default().join(cacheDir, artifactFilename)], cacheDir);
(0,core.info)(`Uploaded ${artifactFilename} successfully`);
}
catch (err) {
if (err instanceof Error && err.message.includes('(409) Conflict:')) {
// an artifact with the same hash must have been already uploaded by another job running in parallel
(0,core.info)(`Artifact ${artifactFilename} already exists, skipping...`);
return;
}
throw err;
}
}));
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "turborepo-gh-artifacts",
"version": "3.0.1",
"version": "3.0.2",
"description": "A TurboRepo local cache server which uploads artifact cache to GH artifacts.",
"license": "MIT",
"author": "felixmosh",
Expand Down

0 comments on commit a0fc02d

Please sign in to comment.