-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use release-please for automating releases (#622)
- Loading branch information
Showing
39 changed files
with
243 additions
and
223 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
name: ci | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [8, 12, 14, 16] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: node --version | ||
# The first installation step ensures that all of our production | ||
# dependencies work on the given Node.js version, this helps us find | ||
# dependencies that don't match our engines field: | ||
- run: npm install --production --engine-strict --ignore-scripts --no-package-lock | ||
# Clean up the production install, before installing dev/production: | ||
- run: rm -rf node_modules | ||
- run: npm install | ||
- run: npm test | ||
env: | ||
MOCHA_THROW_DEPRECATION: false | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- run: npm install | ||
- run: npm test | ||
env: | ||
MOCHA_THROW_DEPRECATION: false |
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,34 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
name: release-please-submodule | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v2 | ||
with: | ||
command: manifest | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
default-branch: master | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: release-please | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
path: ${{fromJson(needs.release.outputs.paths_released || '[]')}} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
registry-url: 'https://external-dot-oss-automation.appspot.com/' | ||
- name: publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_MONOREPO_TOKEN}} | ||
run: | | ||
cd ${{ matrix.path }} | ||
npm install | ||
npm publish --access=public |
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,13 @@ | ||
{ | ||
"reporter": ["text", "lcov"], | ||
"exclude": [ | ||
"**/*-test", | ||
"**/coverage", | ||
"**/test", | ||
"**/*.d.ts", | ||
".jsdoc.js", | ||
"**/.jsdoc.js" | ||
], | ||
"exclude-after-remap": false, | ||
"all": true | ||
} |
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,11 @@ | ||
{ | ||
"packages/istanbul-lib-coverage": "3.0.0", | ||
"packages/istanbul-lib-hook": "3.0.0", | ||
"packages/istanbul-lib-instrument": "4.0.3", | ||
"packages/istanbul-lib-report": "3.0.0", | ||
"packages/istanbul-lib-source-maps": "4.0.0", | ||
"packages/istanbul-reports": "3.0.2", | ||
"packages/nyc-config-babel": "3.0.0", | ||
"packages/nyc-config-hook-run-in-this-context": "1.0.0", | ||
"packages/nyc-config-typescript": "1.0.1" | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,12 +1,12 @@ | ||
import { createHash } from 'crypto'; | ||
import { major } from 'semver'; | ||
import { name, version } from '../package.json'; | ||
const { createHash } = require('crypto'); | ||
const { major } = require('semver'); | ||
const { name, version } = require('../package.json'); | ||
|
||
// function to use for creating hashes | ||
export const SHA = 'sha1'; | ||
// name of coverage data magic key | ||
export const MAGIC_KEY = '_coverageSchema'; | ||
// name of coverage data magic value | ||
export const MAGIC_VALUE = createHash(SHA) | ||
.update(name + '@' + major(version)) | ||
.digest('hex'); | ||
const SHA = 'sha1'; | ||
module.exports = { | ||
SHA, | ||
MAGIC_KEY: '_coverageSchema', | ||
MAGIC_VALUE: createHash(SHA) | ||
.update(name + '@' + major(version)) | ||
.digest('hex') | ||
}; |
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.