Skip to content

Commit

Permalink
chore(release): 1.10.0 (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Aug 5, 2020
2 parents 5c646d5 + 0e8bdaa commit 27cfbed
Show file tree
Hide file tree
Showing 253 changed files with 7,320 additions and 4,237 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
*.tgz binary
*.tar.gz binary

# Github Linguist configuration (https://github.com/github/linguist)
yarn.lock linguidt-generated
docs/** linguist-documentation
255 changes: 255 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
# Workflows pertaining to the main/master branch
name: Main

on:
pull_request:
branches: [main, master]
push:
branches: [main, master]

env:
DOTNET_NOLOGO: true

# This workflows currently has the following jobs:
# - build : Builds the source tree as-is
# - test : Runs all unit tests against the build result
# - create-release-package : Prepares a release package with the "real" version

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# Set up all of our standard runtimes
- name: Set up .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Set up Java 8
uses: actions/setup-java@v1
with:
java-version: '8'
- name: Set up Node 12
uses: actions/setup-node@v2.1.1
with:
node-version: '12'
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install python3-venv
run: sudo apt install -y python3-venv
- name: Check out
uses: actions/checkout@v2
- name: Locate Caches
id: cache-locations
run: |-
# Need to have PIP >= 20.1 for "pip cache dir" to work
python3 -m pip install --upgrade pip
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)"
echo "::set-output name=yarn-cache::$(yarn cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: |-
${{ steps.cache-locations.outputs.pip-cache }}
${{ steps.cache-locations.outputs.yarn-cache }}
~/.m2/repository
~/.nuget/packages
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock') }}
restore-keys: |-
${{ runner.os }}-node@12-python@3.6-
${{ runner.os }}-node@12-
${{ runner.os }}-
# Prepare dependencies and build
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Full Build
run: yarn build
- name: "Upload Artifact: built-tree"
uses: actions/upload-artifact@v2
with:
name: built-tree
path: |-
${{ github.workspace }}
!**/.env/**
!**/node_modules/**
!**/project/.m2/**
create-release-package:
name: Create Release Package
runs-on: ubuntu-latest
steps:
# Set up all of our standard runtimes
- name: Set up .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Set up Java 8
uses: actions/setup-java@v1
with:
java-version: '8'
- name: Set up Node 12
uses: actions/setup-node@v2.1.1
with:
node-version: '12'
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install python3-venv
run: sudo apt install -y python3-venv
- name: Check out
uses: actions/checkout@v2
- name: Locate Caches
id: cache-locations
run: |-
# Need to have PIP >= 20.1 for "pip cache dir" to work
python3 -m pip install --upgrade pip
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)"
echo "::set-output name=yarn-cache::$(yarn cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: |-
${{ steps.cache-locations.outputs.pip-cache }}
${{ steps.cache-locations.outputs.yarn-cache }}
~/.m2/repository
~/.nuget/packages
key: ${{ runner.os }}-node@12-python@3.6-${{ hashFiles('**/yarn.lock') }}
restore-keys: |-
${{ runner.os }}-node@12-python@3.6-
${{ runner.os }}-node@12-
${{ runner.os }}-
# Prepare dependencies and build
- name: Install Dependencies
run: yarn install --frozen-lockfile
# Determine a prerelease version (depending on whether this is a PR or Push event)
- name: Standard Version (PR)
if: github.event_name == 'pull_request'
run: |-
npx standard-version \
--compareUrlFormat='{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...${{ github.sha }}' \
--prerelease=pr${{ github.event.pull_request.number }} \
--skip.commit
- name: Standard Version (Nightly)
if: github.event_name == 'push'
run: |-
npx standard-version \
--compareUrlFormat='{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...${{ github.sha }}' \
--prerelease=nightly.$(date -u +'%Y%m%d') \
--skip.commit
# Now we'll be preparing a release package (with the "real" version)
- name: Align Versions
run: ./scripts/align-version.sh
- name: Full Build
run: yarn build
- name: Package Libraries
run: yarn package
- name: "Upload Artifact: release-package"
uses: actions/upload-artifact@v2
with:
name: release-package
path: ${{ github.workspace }}/dist/
test:
name: Test (${{ matrix.os }} / java ${{ matrix.java }} / node ${{ matrix.node }} / python ${{ matrix.python }})
needs: build
strategy:
fail-fast: false
matrix:
# All currently supported node versions (Maintenance LTS, Active LTS, Current)
dotnet: ['3.1.x']
java: ['8']
node: ['10', '12', '14']
os: [ubuntu-latest]
python: ['3.6']
# Add specific combinations to be tested against "node 10" (to restrict cardinality)
include:
# Test using Windows
- os: windows-latest
dotnet: '3.1.x'
java: '8'
node: '10'
python: '3.6'
# Test using macOS
- os: macos-latest
dotnet: '3.1.x'
java: '8'
node: '10'
python: '3.6'
# Test alternate Javas
- java: '11'
dotnet: '3.1.x'
node: '10'
os: ubuntu-latest
python: '3.6'
# Test alternate Pythons
- python: '3.7'
dotnet: '3.1.x'
java: '8'
node: '10'
os: ubuntu-latest
- python: '3.8'
dotnet: '3.1.x'
java: '8'
node: '10'
os: ubuntu-latest

runs-on: ${{ matrix.os }}

steps:
# Set up all of our standard runtimes (this is matrix-based)
- name: Set up .NET ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v2.1.1
with:
node-version: ${{ matrix.node }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: 'Linux: Install python3-venv'
if: runner.os == 'Linux'
run: sudo apt install -y python3-venv
- name: 'Windows: Expose python3 command'
if: runner.os == 'Windows'
shell: bash
run: cp ${pythonLocation}/python.exe ${pythonLocation}/python3.exe
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: built-tree
- name: Locate Caches
id: cache-locations
run: |-
# Need to have PIP >= 20.1 for "pip cache dir" to work
python3 -m pip install --upgrade pip
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)"
echo "::set-output name=yarn-cache::$(yarn cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: |-
${{ steps.cache-locations.outputs.pip-cache }}
${{ steps.cache-locations.outputs.yarn-cache }}
~/.m2/repository
~/.nuget/packages
# Not including .NET / Java in the cache keys, those artifacts are SDK-version-independent
key: ${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |-
${{ runner.os }}-node@${{ matrix.node }}-python@${{ matrix.python }}-
${{ runner.os }}-node@${{ matrix.node }}-
${{ runner.os }}-
# Install dependencies (ensures arch/os specific packages are re-built)
- name: Install Dependencies
run: yarn install --frozen-lockfile
# Run all tests
- name: Test
run: yarn test
62 changes: 62 additions & 0 deletions .github/workflows/yarn-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Yarn Upgrade

on:
schedule:
# Every wednesday at 13:37 UTC
- cron: 37 13 * * 3
workflow_dispatch: {}

jobs:
upgrade:
name: Yarn Upgrade
runs-on: ubuntu-latest
steps:

- name: Check Out
uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v2.1.0
with:
node-version: 10

- name: Locate Yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Restore Yarn cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |-
${{ runner.os }}-yarn-
- name: Run "ncu -u" in root
run: npx -p npm-check-updates ncu -u

# If "ncu -u" changed something... we must first invoke "yarn install"
- name: Run "yarn install"
run: yarn install

- name: Run "yarn upgrade"
run: yarn upgrade

- name: Make Pull Request
uses: peter-evans/create-pull-request@v2
with:
# Git commit details
branch: automation/yarn-upgrade
commit-message: |-
chore: npm-check-updates && yarn upgrade
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
# Pull Request details
title: 'chore: npm-check-updates && yarn upgrade'
body: |-
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
labels: contribution/core,dependencies
team-reviewers: aws-cdk-team
# Privileged token so automated PR validation happens
token: ${{ secrets.AUTO_APPROVE_GITHUB_TOKEN }}

18 changes: 15 additions & 3 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"skip": { "tag": true },
"packageFiles": [ { "filename": "lerna.json", "type": "json" } ],
"bumpFiles": [ { "filename": "lerna.json", "type": "json" } ]
"bumpFiles": [
{
"filename": "lerna.json",
"type": "json"
}
],
"packageFiles": [
{
"filename": "lerna.json",
"type": "json"
}
],
"skip": {
"tag": true
}
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.10.0](https://github.com/aws/jsii/compare/v1.9.0...v1.10.0) (2020-08-05)


### Bug Fixes

* **java:** user.xml repository ID was not sanitized ([#1812](https://github.com/aws/jsii/issues/1812)) ([4283af0](https://github.com/aws/jsii/commit/4283af0cb2338c31594c53b2ab040b7b183aec77))
* **jsii:** Location of initializers in source was not documented ([#1806](https://github.com/aws/jsii/issues/1806)) ([3957827](https://github.com/aws/jsii/commit/3957827a5a730d51029313518caacb0e87c09b83))
* **jsii:** selective exports declarations are ignored ([#1829](https://github.com/aws/jsii/issues/1829)) ([2699ccf](https://github.com/aws/jsii/commit/2699ccf89f3243edac677dac9ca8186a5bb102f2)), closes [#1818](https://github.com/aws/jsii/issues/1818)
* **python:** missing imports for certain keyword arguments ([#1810](https://github.com/aws/jsii/issues/1810)) ([f124bc8](https://github.com/aws/jsii/commit/f124bc8b0ebf9243f45c59be6209ca01fd967dea)), closes [#1809](https://github.com/aws/jsii/issues/1809)
* **rosetta:** OOpsie -- couldn't find root file back on Windows ([#1842](https://github.com/aws/jsii/issues/1842)) ([6ea8daa](https://github.com/aws/jsii/commit/6ea8daa8a022c5bda5fd1854d49292e65caac2be))
* **rosetta:** kwargs arguments are emitted at a variadic position ([#1832](https://github.com/aws/jsii/issues/1832)) ([079e147](https://github.com/aws/jsii/commit/079e147060d30dc1c878862af7bbb52f0cc54733)), closes [#1821](https://github.com/aws/jsii/issues/1821)

## [1.9.0](https://github.com/aws/jsii/compare/v1.8.0...v1.9.0) (2020-07-16)


Expand Down
Loading

0 comments on commit 27cfbed

Please sign in to comment.