From 38b65b3772f3e6a7bfa6b062e11669424223bd8b Mon Sep 17 00:00:00 2001 From: Endel Dreyer Date: Mon, 28 Sep 2020 11:32:41 -0300 Subject: [PATCH] release 1.0.0-alpha.57 --- .github/workflows/npm-publish.yml | 28 ++++++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 00000000..667f0d41 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,28 @@ +name: npm-publish +on: + push: + branches: + - master + - dev +jobs: + npm-publish: + name: npm-publish + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@master + - name: Set up Node.js + uses: actions/setup-node@master + with: + node-version: 12.0.0 + - name: Install dependencies + run: npm install + - name: Publish if version has been updated + uses: endel/npm-publish-action@master + with: + tag_name: "v%s" + tag_message: "v%s" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + diff --git a/package.json b/package.json index 51de2344..2fcdc3b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@colyseus/schema", - "version": "1.0.0-alpha.56", + "version": "1.0.0-alpha.57", "description": "Binary state serializer with delta encoding for games", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -20,7 +20,7 @@ "generate-test-8": "bin/schema-codegen test-external/FilteredTypes.ts --namespace SchemaTest.FilteredTypes --output ../colyseus-unity3d/Assets/Editor/ColyseusTests/Schema/FilteredTypes", "generate-test-9": "bin/schema-codegen test-external/InstanceSharingTypes.ts --namespace SchemaTest.InstanceSharing --output ../colyseus-unity3d/Assets/Editor/ColyseusTests/Schema/InstanceSharingTypes", "watch": "tsc -w", - "prepublish": "tsc" + "prepublishOnly": "tsc" }, "files": [ "lib",