Skip to content

Commit

Permalink
feat: use yarn2 for ci/cd publish workflow (#27)
Browse files Browse the repository at this point in the history
* ci: use yarn2 to publish

* ci: remove old script

* chore: deps update

* tests: adjust
  • Loading branch information
kristjank authored Nov 18, 2020
1 parent ed94b2a commit 9d9848c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 21 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/guardian-functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: TEST
run: |
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: TEST
run: |
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: TEST
run: |
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: TEST
run: |
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: TEST
run: |
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: TEST
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install and build packages
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: GUARDIAN-API
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: '12.x'
registry-url: https://registry.npmjs.org/
always-auth: true

- name: Install & Build
run: yarn && yarn build

- name: Publish to NPM
run: bash scripts/publish.sh
run: |
yarn config set npmAuthToken "$env:NODE_AUTH_TOKEN"
yarn publish:beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install And Build
run: yarn install --immutable --immutable-cache && yarn build
run: yarn && yarn build

- name: GUARDIAN-CRYPTO
run: cd packages/guardian-crypto && yarn test:unit:coverage --coverageDirectory .coverage/unit-guardian-crypto --maxWorkers=2
Expand Down
6 changes: 3 additions & 3 deletions packages/guardian-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@
"@types/is-url-superb": "3.0.0",
"@types/jest": "^26.0.15",
"@types/lodash.orderby": "4.6.6",
"@types/node": "^14.14.7",
"@types/node": "^14.14.8",
"@types/prettier": "^2.1.5",
"@types/rimraf": "^3.0.0",
"@types/semver": "7.3.4",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.8.0",
"@typescript-eslint/parser": "^4.8.0",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"codecov": "^3.8.1",
"cross-env": "^7.0.2",
"eslint": "^7.13.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@arkecosystem/core-test-framework": "3.0.0-next.9",
"@sindresorhus/tsconfig": "~0.7.0",
"@types/jest": "~26.0.15",
"@types/node": "^14.14.7",
"@types/node": "^14.14.8",
"@types/rimraf": "^3.0.0",
"@types/uuid": "^8.3.0",
"big-integer": "^1.6.48",
Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@types/is-url-superb": "3.0.0",
"@types/jest": "^26.0.15",
"@types/lodash.orderby": "4.6.6",
"@types/node": "^14.14.7",
"@types/node": "^14.14.8",
"@types/prettier": "^2.1.5",
"@types/rimraf": "^3.0.0",
"@types/semver": "7.3.4",
Expand Down
6 changes: 0 additions & 6 deletions scripts/publish.sh

This file was deleted.

0 comments on commit 9d9848c

Please sign in to comment.