Skip to content

Commit

Permalink
feat: separate automation and yarn2 publish (#26)
Browse files Browse the repository at this point in the history
* chore: return publish yarn script commands

* chore: deps update

* chore: update and yarn publish:beta from root

* chore: make publish script npm based

* chore: version bump
  • Loading branch information
kristjank authored Nov 17, 2020
1 parent 8fe493a commit e5a5952
Show file tree
Hide file tree
Showing 18 changed files with 414 additions and 158 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
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 ..
run: bash scripts/publish.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN }}
217 changes: 177 additions & 40 deletions .pnp.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"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",
Expand Down
52 changes: 26 additions & 26 deletions packages/guardian-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protokol/guardian-api",
"version": "1.0.0-beta.30",
"version": "1.0.0-beta.32",
"description": "REST API For Guardian Functionality",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down Expand Up @@ -34,18 +34,18 @@
"build:watch": "yarn clean && yarn compile -w",
"clean": "rimraf .coverage dist tmp",
"test": "jest",
"prepublishOnly": "yarn build",
"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"
"test:integration:coverage": "jest __tests__/integration --coverage --runInBand --forceExit",
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/core-api": "^3.0.0-next.9",
"@arkecosystem/core-kernel": "^3.0.0-next.9",
"@arkecosystem/crypto": "^3.0.0-next.9",
"@hapi/boom": "^9.0.0",
"@hapi/hapi": "^20.0.0",
"@hapi/boom": "^9.1.0",
"@hapi/hapi": "^20.0.2",
"@hapi/joi": "^17.1.0",
"@protokol/guardian-crypto": "workspace:packages/guardian-crypto",
"@protokol/guardian-transactions": "workspace:packages/guardian-transactions",
Expand All @@ -59,38 +59,38 @@
"@arkecosystem/core-transaction-pool": "^3.0.0-next.9",
"@arkecosystem/core-transactions": "^3.0.0-next.9",
"@sindresorhus/tsconfig": "^0.7.0",
"@types/eslint": "^7.2.0",
"@types/eslint": "^7.2.5",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/hapi__boom": "^7.4.1",
"@types/hapi__joi": "^17.0.0",
"@types/hapi__joi": "^17.1.6",
"@types/is-url-superb": "3.0.0",
"@types/jest": "^26.0.10",
"@types/jest": "^26.0.15",
"@types/lodash.orderby": "4.6.6",
"@types/node": "^14.0.27",
"@types/prettier": "^2.0.0",
"@types/node": "^14.14.7",
"@types/prettier": "^2.1.5",
"@types/rimraf": "^3.0.0",
"@types/semver": "7.3.4",
"@types/uuid": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^4.0.0",
"codecov": "^3.7.2",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.8.0",
"@typescript-eslint/parser": "^4.8.0",
"codecov": "^3.8.1",
"cross-env": "^7.0.2",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jest": "^24.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-simple-import-sort": "^6.0.0",
"got": "^11.5.2",
"jest": "^26.4.0",
"got": "^11.8.0",
"jest": "^26.6.3",
"jest-extended": "^0.11.5",
"jest-localstorage-mock": "^2.4.3",
"nock": "^13.0.4",
"npm-check-updates": "~10.2.0",
"prettier": "^2.0.5",
"nock": "^13.0.5",
"npm-check-updates": "~10.2.1",
"prettier": "^2.1.2",
"rimraf": "^3.0.2",
"ts-jest": "~26.4.0",
"typedoc": "~0.19.0",
"typescript": "~4.0.2"
"ts-jest": "~26.4.4",
"typedoc": "~0.19.2",
"typescript": "~4.0.5"
},
"engines": {
"node": ">=10.x"
Expand Down
21 changes: 11 additions & 10 deletions packages/guardian-crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protokol/guardian-crypto",
"version": "1.0.0-beta.30",
"version": "1.0.0-beta.32",
"description": "Transaction Builders For Guardian Transaction Types",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down Expand Up @@ -38,7 +38,8 @@
"test:watch": "jest --watchAll",
"coverage:report": "codecov",
"test:unit": "jest __tests__/unit/** --forceExit",
"test:unit:coverage": "jest __tests__/unit --coverage"
"test:unit:coverage": "jest __tests__/unit --coverage",
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/crypto": "^3.0.0-next.9",
Expand All @@ -49,21 +50,21 @@
"@arkecosystem/core-kernel": "^3.0.0-next.9",
"@arkecosystem/core-test-framework": "3.0.0-next.9",
"@sindresorhus/tsconfig": "~0.7.0",
"@types/jest": "~26.0.10",
"@types/node": "^14.11.2",
"@types/jest": "~26.0.15",
"@types/node": "^14.14.7",
"@types/rimraf": "^3.0.0",
"@types/uuid": "^8.0.0",
"@types/uuid": "^8.3.0",
"big-integer": "^1.6.48",
"buffer-es6": "^4.9.3",
"codecov": "^3.6.5",
"codecov": "^3.8.1",
"cross-env": "^7.0.2",
"jest": "~26.6.0",
"jest": "~26.6.3",
"jest-extended": "0.11.5",
"process-es6": "^0.11.6",
"rimraf": "^3.0.2",
"ts-jest": "~26.4.0",
"typedoc": "~0.19.0",
"typescript": "~4.0.2",
"ts-jest": "~26.4.4",
"typedoc": "~0.19.2",
"typescript": "~4.0.5",
"util": "^0.12.3"
},
"publishConfig": {
Expand Down
24 changes: 12 additions & 12 deletions packages/guardian-transactions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@protokol/guardian-transactions",
"version": "1.0.0-beta.30",
"version": "1.0.0-beta.32",
"description": "Transaction Types For Guardian Support",
"license": "CC-BY-NC-SA-4.0",
"homepage": "https://docs.protokol.com/nft/",
Expand Down Expand Up @@ -34,11 +34,11 @@
"build:watch": "yarn clean && yarn compile -w",
"clean": "rimraf .coverage dist tmp",
"test": "jest",
"prepublishOnly": "yarn build",
"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"
"test:functional:coverage": "CORE_ENV=test jest __tests__/functional --coverage --forceExit --detectOpenHandles",
"publish:beta": "yarn build && yarn npm publish --tag beta --access public --tolerate-republish"
},
"dependencies": {
"@arkecosystem/core-database": "^3.0.0-next.9",
Expand All @@ -57,34 +57,34 @@
"@arkecosystem/core-transaction-pool": "^3.0.0-next.9",
"@arkecosystem/utils": "*",
"@sindresorhus/tsconfig": "~0.7.0",
"@types/eslint": "^7.2.2",
"@types/eslint": "^7.2.5",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/hapi__joi": "17.1.6",
"@types/is-url-superb": "3.0.0",
"@types/jest": "^26.0.12",
"@types/jest": "^26.0.15",
"@types/lodash.orderby": "4.6.6",
"@types/node": "^14.6.2",
"@types/prettier": "^2.1.0",
"@types/node": "^14.14.7",
"@types/prettier": "^2.1.5",
"@types/rimraf": "^3.0.0",
"@types/semver": "7.3.4",
"ajv": "6.12.6",
"big-integer": "^1.6.48",
"bip39": "3.0.3",
"buffer-es6": "^4.9.3",
"codecov": "^3.6.5",
"codecov": "^3.8.1",
"delay": "4.4.0",
"eslint": "7.13.0",
"eslint-plugin-prettier": "^3.1.4",
"jest": "~26.6.0",
"jest": "~26.6.3",
"jest-extended": "~0.11.5",
"jest-localstorage-mock": "2.4.3",
"pg": "8.5.1",
"prettier": "2.1.2",
"process-es6": "^0.11.6",
"rimraf": "^3.0.2",
"ts-jest": "~26.4.0",
"typedoc": "~0.19.0",
"typescript": "~4.0.2"
"ts-jest": "~26.4.4",
"typedoc": "~0.19.2",
"typescript": "~4.0.5"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 7 additions & 0 deletions scripts/deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
for dir in `find packages -mindepth 1 -maxdepth 1 -type d | sort -nr`; do
cd $dir
echo $PWD
yarn dlx npm-check-updates -u
cd ../..
done
6 changes: 6 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

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 ..
Loading

0 comments on commit e5a5952

Please sign in to comment.