mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
github workflow fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
0b74cf8c6b
commit
8578d44d90
8
.github/workflows/bump-master-version.yaml
vendored
8
.github/workflows/bump-master-version.yaml
vendored
@ -19,15 +19,13 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
npm i --location=global semver
|
yarn ci
|
||||||
- name: Bump version to first alpha of next minor version
|
- name: Bump version to first alpha of next minor version
|
||||||
run: |
|
run: |
|
||||||
NEW_VERSION=$(cat package.json | jq .version --raw-output| xargs semver -i preminor --preid alpha)
|
yarn bump-version preminor
|
||||||
cat package.json | jq --arg new_version "$NEW_VERSION" '.version = $new_version' > new-package.json
|
|
||||||
mv new-package.json package.json
|
|
||||||
- uses: peter-evans/create-pull-request@v4
|
- uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
add-paths: package.json
|
add-paths: lerna.json,packages/*/package.json
|
||||||
commit-message: Update package.json version to next preminor because of recent release
|
commit-message: Update package.json version to next preminor because of recent release
|
||||||
signoff: true
|
signoff: true
|
||||||
delete-branch: true
|
delete-branch: true
|
||||||
|
|||||||
4
.github/workflows/check-docs.yml
vendored
4
.github/workflows/check-docs.yml
vendored
@ -24,8 +24,8 @@ jobs:
|
|||||||
- name: Generate Extensions API Reference using typedocs
|
- name: Generate Extensions API Reference using typedocs
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
yarn typedocs-extensions-api
|
yarn run build:docs
|
||||||
|
|
||||||
- name: Verify that the markdown is valid
|
- name: Verify that the markdown is valid
|
||||||
run: |
|
run: |
|
||||||
yarn run verify-docs
|
yarn run mkdocs:verify
|
||||||
|
|||||||
2
.github/workflows/electronegativity.yml
vendored
2
.github/workflows/electronegativity.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: doyensec/electronegativity-action@v1.1
|
- uses: doyensec/electronegativity-action@v1.1
|
||||||
with:
|
with:
|
||||||
input: src/
|
input: packages/core/src/
|
||||||
electron-version: "19.0.4"
|
electron-version: "19.0.4"
|
||||||
severity: medium
|
severity: medium
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/license-header.yml
vendored
2
.github/workflows/license-header.yml
vendored
@ -25,4 +25,4 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
export PATH=${PATH}:`go env GOPATH`/bin
|
export PATH=${PATH}:`go env GOPATH`/bin
|
||||||
|
|
||||||
addlicense -check -l mit -c "OpenLens Authors" src/**/*.?css
|
addlicense -check -l mit -c "OpenLens Authors" packages/*/src/**/*.?css
|
||||||
|
|||||||
12
.github/workflows/publish-master-npm.yml
vendored
12
.github/workflows/publish-master-npm.yml
vendored
@ -25,13 +25,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Generate NPM package
|
- name: Generate NPM packages
|
||||||
run: |
|
run: |
|
||||||
make build-extensions-npm
|
yarn ci
|
||||||
|
yarn run build
|
||||||
|
|
||||||
- name: publish new release
|
- name: Publish NPM package
|
||||||
run: |
|
run: |
|
||||||
make publish-extensions-npm
|
yarn lerna publish from-package --dist-tag master --no-push --no-git-tag-version --yes
|
||||||
env:
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
NPM_RELEASE_TAG: master
|
|
||||||
|
|||||||
40
.github/workflows/publish-release-npm.yml
vendored
40
.github/workflows/publish-release-npm.yml
vendored
@ -12,8 +12,8 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
description: The version to release manually
|
description: The version to release manually
|
||||||
jobs:
|
jobs:
|
||||||
publish-extensions:
|
publish-npm-packages:
|
||||||
name: Publish Extensions NPM Package Release
|
name: Publish NPM Packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -30,39 +30,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Generate NPM package
|
- name: Generate NPM packages
|
||||||
run: |
|
run: |
|
||||||
make build-extensions-npm
|
yarn ci
|
||||||
|
yarn run build
|
||||||
|
|
||||||
- name: Publish NPM package
|
- name: Publish NPM packages
|
||||||
run: |
|
run: |
|
||||||
make publish-extensions-npm
|
yarn lerna publish from-package --no-push --no-git-tag-version --yes
|
||||||
env:
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
publish-library:
|
|
||||||
name: Publish Library NPM Package Release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [16.x]
|
|
||||||
steps:
|
|
||||||
- name: Checkout Release
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{ inputs.version }}
|
|
||||||
|
|
||||||
- name: Using Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: Generate NPM package
|
|
||||||
run: |
|
|
||||||
make build-library-npm
|
|
||||||
|
|
||||||
- name: Publish NPM package
|
|
||||||
run: |
|
|
||||||
make publish-library-npm
|
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
|||||||
timeout_minutes: 10
|
timeout_minutes: 10
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
retry_on: error
|
retry_on: error
|
||||||
command: make node_modules
|
command: yarn ci
|
||||||
|
|
||||||
- run: make test
|
- run: make test
|
||||||
name: Run tests
|
name: Run tests
|
||||||
|
|||||||
43
Makefile
Normal file
43
Makefile
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
CMD_ARGS = $(filter-out $@,$(MAKECMDGOALS))
|
||||||
|
|
||||||
|
%:
|
||||||
|
@:
|
||||||
|
|
||||||
|
ELECTRON_BUILDER_EXTRA_ARGS ?=
|
||||||
|
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
DETECTED_OS := Windows
|
||||||
|
else
|
||||||
|
DETECTED_OS := $(shell uname)
|
||||||
|
endif
|
||||||
|
|
||||||
|
node_modules: yarn.lock
|
||||||
|
yarn install --check-files --frozen-lockfile --network-timeout=100000
|
||||||
|
yarn lerna bootstrap
|
||||||
|
|
||||||
|
.PHONY: lint
|
||||||
|
lint: node_modules
|
||||||
|
yarn lint
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test: node_modules
|
||||||
|
yarn run test:unit
|
||||||
|
|
||||||
|
.PHONY: integration
|
||||||
|
integration: build
|
||||||
|
yarn test:integration
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build:
|
||||||
|
yarn run build
|
||||||
|
ifeq "$(DETECTED_OS)" "Windows"
|
||||||
|
# https://github.com/ukoloff/win-ca#clear-pem-folder-on-publish
|
||||||
|
rm -rf packages/core/node_modules/win-ca/pem
|
||||||
|
endif
|
||||||
|
yarn lerna run build:app --publish onTag $(ELECTRON_BUILDER_EXTRA_ARGS)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
yarn run clean
|
||||||
|
yarn run clean:node_modules
|
||||||
Loading…
Reference in New Issue
Block a user