mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Reduce the number of releases
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
038117ff26
commit
c13edf921e
6
.github/workflows/publish-master-npm.yml
vendored
6
.github/workflows/publish-master-npm.yml
vendored
@ -1,12 +1,16 @@
|
|||||||
name: Publish NPM Package `master`
|
name: Publish NPM Package `master`
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish NPM Package `master`
|
name: Publish NPM Package `master`
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/extension') }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x]
|
node-version: [12.x]
|
||||||
|
|||||||
@ -33,7 +33,7 @@ if (NPM_RELEASE_TAG !== "latest") {
|
|||||||
encoding: "utf-8",
|
encoding: "utf-8",
|
||||||
});
|
});
|
||||||
|
|
||||||
version.inc("prerelease", gitRef.trim());
|
version.inc("prerelease", `git.${gitRef.trim()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
packageInfo.version = version.format();
|
packageInfo.version = version.format();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user