From 8fe493ab2b7d6bd8ed1c7d5cf6dd053b2fd17f17 Mon Sep 17 00:00:00 2001 From: Kristjan Kosic Date: Mon, 16 Nov 2020 19:58:55 +0100 Subject: [PATCH] ci: release automation gha (#25) * chore: gha for publish * chore: version bump and rebuild --- .github/workflows/publish-beta.yml | 25 +++++++++++++++++++++ .pnp.js | 4 ++-- package.json | 1 - packages/guardian-api/package.json | 6 ++--- packages/guardian-crypto/package.json | 6 ++--- packages/guardian-transactions/package.json | 6 ++--- 6 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/publish-beta.yml diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml new file mode 100644 index 00000000..00ef4a03 --- /dev/null +++ b/.github/workflows/publish-beta.yml @@ -0,0 +1,25 @@ +name: PUBLISH NPM:BETA +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + + - name: Install & Build + run: yarn && yarn build + + - name: Publish to NPM + run: | + cd packages + cd guardian-crypto && npm publish --tag beta --access public --tolerate-republish && cd .. + cd guardian-transactions && npm publish --tag beta --access public --tolerate-republish && cd .. + cd guardian-api && npm publish --tag beta --access public --tolerate-republish && cd .. + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN }} diff --git a/.pnp.js b/.pnp.js index 14a4e182..3bce86bb 100755 --- a/.pnp.js +++ b/.pnp.js @@ -10549,7 +10549,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ]], ["ngrok", [ ["npm:3.3.0", { - "packageLocation": "./.yarn/cache/ngrok-npm-3.3.0-ff8d3edfc1-6e9bdd8e03.zip/node_modules/ngrok/", + "packageLocation": "./.yarn/unplugged/ngrok-npm-3.3.0-ff8d3edfc1/node_modules/ngrok/", "packageDependencies": [ ["ngrok", "npm:3.3.0"], ["@types/node", "npm:8.10.66"], @@ -12079,7 +12079,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ]], ["protobufjs", [ ["npm:6.10.1", { - "packageLocation": "./.yarn/cache/protobufjs-npm-6.10.1-e168613ba4-6917e25337.zip/node_modules/protobufjs/", + "packageLocation": "./.yarn/unplugged/protobufjs-npm-6.10.1-e168613ba4/node_modules/protobufjs/", "packageDependencies": [ ["protobufjs", "npm:6.10.1"], ["@protobufjs/aspromise", "npm:1.1.2"], diff --git a/package.json b/package.json index 76c80b98..85952e65 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "yarn": "^2" }, "scripts": { - "publish:beta": "yarn workspaces foreach -pt run publish:beta", "build": "yarn workspaces foreach -pt run build", "clean": "yarn workspaces foreach -pt run clean", "version": "yarn workspaces foreach version", diff --git a/packages/guardian-api/package.json b/packages/guardian-api/package.json index 62dff1dc..66967b33 100644 --- a/packages/guardian-api/package.json +++ b/packages/guardian-api/package.json @@ -1,6 +1,6 @@ { "name": "@protokol/guardian-api", - "version": "1.0.0-beta.28", + "version": "1.0.0-beta.30", "description": "REST API For Guardian Functionality", "license": "CC-BY-NC-SA-4.0", "homepage": "https://docs.protokol.com/nft/", @@ -38,9 +38,7 @@ "test:unit": "jest __tests__/unit/** --forceExit --detectOpenHandles", "test:unit:coverage": "jest __tests__/unit --coverage --detectOpenHandles", "test:integration": "jest __tests__/integration --runInBand --forceExit", - "test:integration:coverage": "jest __tests__/integration --coverage --runInBand --forceExit", - "publish": "yarn build && yarn npm publish --access public", - "publish:beta": "yarn build && yarn npm publish --access public --tag beta --tolerate-republish" + "test:integration:coverage": "jest __tests__/integration --coverage --runInBand --forceExit" }, "dependencies": { "@arkecosystem/core-api": "^3.0.0-next.9", diff --git a/packages/guardian-crypto/package.json b/packages/guardian-crypto/package.json index 6c5e6ca0..3cfdfba9 100644 --- a/packages/guardian-crypto/package.json +++ b/packages/guardian-crypto/package.json @@ -1,6 +1,6 @@ { "name": "@protokol/guardian-crypto", - "version": "1.0.0-beta.28", + "version": "1.0.0-beta.30", "description": "Transaction Builders For Guardian Transaction Types", "license": "CC-BY-NC-SA-4.0", "homepage": "https://docs.protokol.com/nft/", @@ -38,9 +38,7 @@ "test:watch": "jest --watchAll", "coverage:report": "codecov", "test:unit": "jest __tests__/unit/** --forceExit", - "test:unit:coverage": "jest __tests__/unit --coverage", - "publish": "yarn build && yarn npm publish --access public", - "publish:beta": "yarn build && yarn npm publish --access public --tag beta --tolerate-republish" + "test:unit:coverage": "jest __tests__/unit --coverage" }, "dependencies": { "@arkecosystem/crypto": "^3.0.0-next.9", diff --git a/packages/guardian-transactions/package.json b/packages/guardian-transactions/package.json index c0cbe8f1..e779e50b 100644 --- a/packages/guardian-transactions/package.json +++ b/packages/guardian-transactions/package.json @@ -1,6 +1,6 @@ { "name": "@protokol/guardian-transactions", - "version": "1.0.0-beta.28", + "version": "1.0.0-beta.30", "description": "Transaction Types For Guardian Support", "license": "CC-BY-NC-SA-4.0", "homepage": "https://docs.protokol.com/nft/", @@ -38,9 +38,7 @@ "test:unit": "jest __tests__/unit/** --forceExit --detectOpenHandles", "test:unit:coverage": "jest __tests__/unit --coverage --detectOpenHandles", "test:functional": "CORE_ENV=test jest __tests__/functional --forceExit --detectOpenHandles", - "test:functional:coverage": "CORE_ENV=test jest __tests__/functional --coverage --forceExit --detectOpenHandles", - "publish": "yarn build && yarn npm publish --access public", - "publish:beta": "yarn build && yarn npm publish --access public --tag beta --tolerate-republish" + "test:functional:coverage": "CORE_ENV=test jest __tests__/functional --coverage --forceExit --detectOpenHandles" }, "dependencies": { "@arkecosystem/core-database": "^3.0.0-next.9",