-
-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in unstable and resolve conflicts
- Loading branch information
Showing
1,106 changed files
with
12,529 additions
and
8,943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '19 21 * * 3' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
# - run: | | ||
# echo "Run, Build Application using script" | ||
# ./location_of_script_within_repo/buildscript.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,21 +40,39 @@ jobs: | |
run: yarn build | ||
if: steps.cache-deps.outputs.cache-hit == 'true' | ||
# </common-build> | ||
- name: Get version | ||
id: version | ||
run: | | ||
PACKAGE_VERSION=$(node -p "require('./packages/lodestar/package.json').version") | ||
export VERSION=${PACKAGE_VERSION}-dev.${GITHUB_SHA:0:10} | ||
echo "::set-output name=version::$VERSION" | ||
echo PACKAGE_VERSION $PACKAGE_VERSION GITHUB_SHA $GITHUB_SHA VERSION $VERSION | ||
- name: Change and commit version | ||
# Write version before publishing so it's picked up by `lerna publish from-package`. | ||
# It must also be committed to ensure a clean git tree, otherwise `lerna publish` errors. | ||
# This "temp" commit doesn't change the actually release commit which is captured above. | ||
# git-data is also correct, since it's generated at build time, before `lerna version` run. | ||
run: | | ||
node_modules/.bin/lerna version ${{ steps.version.outputs.version }} \ | ||
--force-publish \ | ||
--exact \ | ||
--yes \ | ||
--no-git-tag-version | ||
git config user.name 'temp' | ||
git config user.email '[email protected]' | ||
git commit -am "${{ steps.version.outputs.version }}" | ||
- name: Publish to npm registry | ||
# Just use lerna publish with --canary option. Using 'from-package' ignore other options | ||
# and only compares against the verison in package.json, and skips release if already | ||
# published. | ||
# Note: before https://github.com/ChainSafe/lodestar/commit/28e2c74cf0f1bede8b09c8c9fec26f54b367e3fd | ||
# We used `lerna publish --canary` option. However, since we now publish must version on branches, | ||
# i.e. v0.35.x branch, lerna fails to detect the latest version and publishes canary versions as | ||
# `0.34.0-dev.173+28e2c74cf0` instead of `0.36.0-dev.4+28e2c74cf0`, which creates confusion. | ||
# | ||
# --no-git-reset: | ||
# Do not delete code version artifacts so the next step can pick the version | ||
# | ||
# --canary: | ||
# Format version with commit (1.1.0-alpha.0+81e3b443). Make sure the previous | ||
# released tags are not lightweight("commit" type), but proper annotated ("tag" type) | ||
# Otherwise the version canary will generate will be from last annotated tag type | ||
# Best way to create such a tag is by using 'git tag -a' or using lerna publish! | ||
# | ||
# --dist-tag next: | ||
# Make this nightly version installable with `@next` | ||
# | ||
|
@@ -71,17 +89,15 @@ jobs: | |
# | ||
# NOTE: Using --preid dev.$(git rev-parse --short=7 HEAD) results in `0.24.3-dev.3ddb91d.0+3ddb91d` | ||
run: | | ||
node_modules/.bin/lerna publish --yes --no-verify-access \ | ||
--canary --dist-tag next --no-git-reset --force-publish \ | ||
--preid dev --exact | ||
node_modules/.bin/lerna publish from-package \ | ||
--yes \ | ||
--no-verify-access \ | ||
--dist-tag next \ | ||
--no-git-reset \ | ||
--force-publish \ | ||
--exact | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Get version | ||
id: version | ||
run: | | ||
VERSION=$(node -p "require('./packages/lodestar/package.json').version") | ||
echo VERSION $VERSION | ||
echo "::set-output name=version::$VERSION" | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
extension: ["ts"] | ||
colors: true | ||
require: | ||
- ts-node/register | ||
node-option: | ||
- "loader=ts-node/esm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.