Compare commits
10
Commits
91900dbc1b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3543b26e4d | ||
|
|
8d7a442e42 | ||
|
|
1d5a9db258 | ||
|
|
b2f21e13f9 | ||
|
|
fb50c36db8 | ||
|
|
312c7d23c2 | ||
|
|
f8b8b7e5a5 | ||
|
|
5472e0e5c8 | ||
|
|
56decd0766 | ||
|
|
f6fee859a4 |
No files matched your search
@@ -0,0 +1,67 @@
|
||||
# Contributing to `@actions/cache`
|
||||
|
||||
## Releasing the package
|
||||
|
||||
The cache package has two actively maintained, incompatible release lines:
|
||||
|
||||
- **v6** is ESM-only and is the default release line. v6 releases are cut from
|
||||
`main`.
|
||||
- **v5** uses CommonJS and is maintained on a separate v5 release branch. Only
|
||||
backport changes that remain compatible with CommonJS and the v5 support
|
||||
requirements.
|
||||
|
||||
Before publishing either release line:
|
||||
|
||||
1. Make sure the intended changes and tests are present on the release branch.
|
||||
2. Update the version in `package.json` and `package-lock.json`.
|
||||
3. Add the release notes to [`RELEASES.md`](./RELEASES.md).
|
||||
4. Make sure the release branch's required checks pass.
|
||||
|
||||
See [#2500](https://github.com/actions/toolkit/pull/2500) for a reference pull
|
||||
request that prepares a cache release, updates dependencies and package
|
||||
metadata, and records the release notes.
|
||||
|
||||
### Publish workflow
|
||||
|
||||
Publish releases with the
|
||||
[`Publish NPM` workflow](../../.github/workflows/releases.yml). For more
|
||||
information about how the repository publishes packages, see the
|
||||
[repository release documentation](../../docs/release.md).
|
||||
|
||||
The workflow installs dependencies, bootstraps and builds the repository,
|
||||
runs tests, packs `@actions/cache`, and publishes the resulting package to
|
||||
npm with provenance. When manually running the workflow, choose the inputs
|
||||
for the release line:
|
||||
|
||||
| Input | v6 release | v5 release |
|
||||
| --- | --- | --- |
|
||||
| `package` | `cache` | `cache` |
|
||||
| `branch` | `main` | The v5 release branch containing the release |
|
||||
| `npm-tag` | `latest` | `v5-commonjs` |
|
||||
| `test-all` | See [Test selection](#test-selection) | See [Test selection](#test-selection) |
|
||||
|
||||
The npm tag is important because it determines which package line consumers
|
||||
install:
|
||||
|
||||
- Always publish v6 with the `latest` tag.
|
||||
- Always publish v5 with the `v5-commonjs` tag. Never publish a v5 release
|
||||
with `latest`.
|
||||
|
||||
Do not use a semantic version such as `5.3.0` as an npm tag. npm dist-tags
|
||||
must not be valid semantic versions.
|
||||
|
||||
### Test selection
|
||||
|
||||
The `test-all` input controls the scope of the workflow's test step:
|
||||
|
||||
- Leave `test-all` set to `false` to run only the cache package's Jest tests.
|
||||
- Set `test-all` to `true` to run the entire repository test suite.
|
||||
|
||||
The workflow builds all packages in either case. Use the full test suite when
|
||||
the release includes changes that affect shared packages or when broader
|
||||
repository validation is needed.
|
||||
|
||||
### Verify the release
|
||||
|
||||
After the workflow completes, verify the published version and its dist-tag on
|
||||
the [`@actions/cache` npm page](https://www.npmjs.com/package/@actions/cache).
|
||||
@@ -29,6 +29,11 @@
|
||||
- **Breaking change**: Package is now ESM-only
|
||||
- CommonJS consumers must use dynamic `import()` instead of `require()`
|
||||
|
||||
## 5.3.0
|
||||
|
||||
- Isolate Windows BSD tar scratch files for concurrent cache list and extract operations, preventing calls from sharing `cache.tar` [#2497](https://github.com/actions/toolkit/pull/2497).
|
||||
- Update compatible runtime and development dependencies and resolve npm audit findings.
|
||||
|
||||
## 5.2.0
|
||||
|
||||
- Handle cache read error due to read-only token: detect the `cache read denied:` prefix on cache download failures (both the v2 twirp path and the v1 `_apis/artifactcache` path) and surface it as a `core.warning` (without failing the run).
|
||||
|
||||
Generated
+2
-2
@@ -14,8 +14,8 @@
|
||||
"@actions/glob": "^0.7.0",
|
||||
"@actions/http-client": "^4.0.1",
|
||||
"@actions/io": "^3.0.2",
|
||||
"@azure/core-rest-pipeline": "^1.25.0",
|
||||
"@azure/storage-blob": "^12.34.0",
|
||||
"@azure/core-rest-pipeline": "~1.25.0",
|
||||
"@azure/storage-blob": "~12.34.0",
|
||||
"@protobuf-ts/runtime-rpc": "^2.11.1",
|
||||
"semver": "^7.8.5"
|
||||
},
|
||||
|
||||
+2
-2
@@ -48,8 +48,8 @@
|
||||
"@actions/glob": "^0.7.0",
|
||||
"@actions/http-client": "^4.0.1",
|
||||
"@actions/io": "^3.0.2",
|
||||
"@azure/core-rest-pipeline": "^1.25.0",
|
||||
"@azure/storage-blob": "^12.34.0",
|
||||
"@azure/core-rest-pipeline": "~1.25.0",
|
||||
"@azure/storage-blob": "~12.34.0",
|
||||
"@protobuf-ts/runtime-rpc": "^2.11.1",
|
||||
"semver": "^7.8.5"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user