Release 1.0.0-rc2

This commit is contained in:
Marin Petrunić 2020-02-07 14:38:40 +01:00
parent 69137a37e0
commit 73b33efe7f
No known key found for this signature in database
GPG Key ID: 834D07135E110DA5
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,8 @@ jobs:
uses: actions/setup-node@master uses: actions/setup-node@master
with: with:
node-version: 12.4.0 node-version: 12.4.0
- name: Build library
run: yarn install --frozen-lockfile && yarn run build
- name: Publish if version has been updated - name: Publish if version has been updated
uses: pascalgn/npm-publish-action@51fdb4531e99aac1873764ef7271af448dc42ab4 uses: pascalgn/npm-publish-action@51fdb4531e99aac1873764ef7271af448dc42ab4
with: # All of theses inputs are optional with: # All of theses inputs are optional

View File

@ -1,7 +1,8 @@
{ {
"name": "libp2p-noise", "name": "libp2p-noise",
"version": "1.0.0-rc1", "version": "1.0.0-rc2",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "lib/index.js", "module": "lib/index.js",
"files": [ "files": [
"dist", "dist",
@ -18,9 +19,10 @@
], ],
"scripts": { "scripts": {
"prebuild": "rm -rf lib && rm -rf dist", "prebuild": "rm -rf lib && rm -rf dist",
"build": "yarn run build:node && yarn run build:web", "build": "yarn run build:node && yarn run build:web && yarn run build:types",
"build:node": "babel --config-file ./babel.config.json src -x .ts -d dist --source-maps", "build:node": "babel --config-file ./babel.config.json src -x .ts -d dist --source-maps",
"build:web": "babel --config-file ./babel.web.config.json src -x .ts -d lib --source-maps", "build:web": "babel --config-file ./babel.web.config.json src -x .ts -d lib --source-maps",
"build:types": "tsc --declaration --outDir dist --emitDeclarationOnly",
"check-types": "tsc --incremental --noEmit", "check-types": "tsc --incremental --noEmit",
"lint": "eslint --ext .ts src/", "lint": "eslint --ext .ts src/",
"pretest": "yarn check-types", "pretest": "yarn check-types",