Skip to content

Commit

Permalink
ci: release automation gha (#25)
Browse files Browse the repository at this point in the history
* chore: gha for publish

* chore: version bump and rebuild
  • Loading branch information
kristjank authored Nov 16, 2020
1 parent 1203157 commit 8fe493a
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 15 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 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.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/",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 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.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/",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 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.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/",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8fe493a

Please sign in to comment.