-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: eladb <[email protected]>
- Loading branch information
1 parent
0be5986
commit 78037bd
Showing
9 changed files
with
75 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
run: yarn install --check-files --frozen-lockfile | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Auto-bump" | ||
git config user.name "Automation" | ||
git config user.email "[email protected]" | ||
- name: Build | ||
run: npx projen build | ||
|
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 |
---|---|---|
|
@@ -7,10 +7,11 @@ on: | |
- main | ||
workflow_dispatch: {} | ||
jobs: | ||
build: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: "true" | ||
RELEASE: "true" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -19,31 +20,45 @@ jobs: | |
- name: Install dependencies | ||
run: yarn install --check-files --frozen-lockfile | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
run: git diff --ignore-space-at-eol --exit-code | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Auto-bump" | ||
git config user.name "Automation" | ||
git config user.email "[email protected]" | ||
- name: Bump to next version | ||
run: npx projen bump | ||
- name: Install GitHub CLI | ||
run: curl -sL | ||
https://github.com/cli/cli/releases/download/v1.9.2/gh_1.9.2_linux_amd64.tar.gz | ||
| tar -xzv --strip-components=2 gh_1.9.2_linux_amd64/bin/gh && mv gh | ||
/usr/bin/ | ||
- name: Build | ||
run: npx projen build | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- name: Push commits | ||
run: git push origin HEAD:${{ github.ref }} | ||
- name: Push tags | ||
run: git push --follow-tags origin ${{ github.ref }} | ||
- name: Check for new commits | ||
id: git_remote | ||
run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ | ||
github.ref }} | cut -f1)" | ||
- name: Create release | ||
if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} | ||
run: gh release create v$(node -p "require('./package.json').version") -F | ||
changelog.tmp.md -t v$(node -p "require('./package.json').version") | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Unbump | ||
run: npx projen unbump | ||
- name: Upload artifact | ||
if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} | ||
uses: actions/[email protected] | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Anti-tamper check | ||
run: git diff --ignore-space-at-eol --exit-code | ||
container: | ||
image: jsii/superchain | ||
release_npm: | ||
name: Release to NPM | ||
needs: build | ||
needs: release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: jsii/superchain | ||
|
@@ -61,7 +76,7 @@ jobs: | |
NPM_REGISTRY: registry.npmjs.org | ||
release_maven: | ||
name: Release to Maven | ||
needs: build | ||
needs: release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: jsii/superchain | ||
|
@@ -81,7 +96,7 @@ jobs: | |
MAVEN_STAGING_PROFILE_ID: ${{ secrets.MAVEN_STAGING_PROFILE_ID }} | ||
release_pypi: | ||
name: Release to PyPi | ||
needs: build | ||
needs: release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: jsii/superchain | ||
|
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 |
---|---|---|
|
@@ -53,4 +53,3 @@ yarn-error.log* | |
!/test | ||
!/tsconfig.eslint.json | ||
!/tsconfig.jest.json | ||
!version.json |
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
/.mergify.yml | ||
/.projen | ||
/.projenrc.js | ||
/.versionrc.json | ||
/.vscode | ||
/coverage | ||
/src | ||
|
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 |
---|---|---|
|
@@ -77,7 +77,7 @@ | |
}, | ||
{ | ||
"name": "projen", | ||
"version": "^0.17.51", | ||
"version": "^0.17.54", | ||
"type": "build" | ||
}, | ||
{ | ||
|
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,19 +1,14 @@ | ||
{ | ||
"packageFiles": [ | ||
{ | ||
"filename": "version.json", | ||
"type": "json" | ||
} | ||
], | ||
"packageFiles": [], | ||
"bumpFiles": [ | ||
{ | ||
"filename": "version.json", | ||
"type": "json" | ||
} | ||
"package.json" | ||
], | ||
"commitAll": true, | ||
"scripts": { | ||
"postbump": "npx projen && git add ." | ||
"commitAll": false, | ||
"infile": "changelog.tmp.md", | ||
"header": "", | ||
"skip": { | ||
"commit": true, | ||
"tag": true | ||
}, | ||
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." | ||
} |
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