Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: some updates to ci #234

Merged
merged 4 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/actions/setup-node/action.yml

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ jobs:
steps:
# Initiate release process if release was created
- name: Checkout aries-framework-javascript-ext
uses: actions/checkout@v2
uses: actions/checkout@v4

# Some packages need indy-sdk for node as part of yarn install
- name: Setup Libindy
uses: ./.github/actions/setup-libindy

- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: Setup node v16
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
32 changes: 22 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ jobs:
- name: Setup Libindy
uses: ./.github/actions/setup-libindy

- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: Setup node v16
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
cache: yarn

- name: Install dependencies
run: yarn install
Expand Down Expand Up @@ -90,10 +92,12 @@ jobs:
with:
seed: ${TEST_AGENT_PUBLIC_DID_SEED}

- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org/'
cache: yarn

- name: Install dependencies
run: yarn install
Expand Down Expand Up @@ -127,10 +131,12 @@ jobs:
- name: Setup Libindy
uses: ./.github/actions/setup-libindy

- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: Setup node v16
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
cache: yarn

- name: Install dependencies
run: yarn install
Expand Down Expand Up @@ -161,22 +167,28 @@ jobs:

# Initiate release process if release was created
- name: Checkout aries-framework-javascript-ext
uses: actions/checkout@v2
uses: actions/checkout@v4
if: ${{ steps.release-please.outputs.release_created }}

# Some packages need indy-sdk for node as part of yarn install
- name: Setup Libindy
uses: ./.github/actions/setup-libindy
if: ${{ steps.release-please.outputs.release_created }}
- name: Setup NodeJS
uses: ./.github/actions/setup-node

- name: Setup node v16
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
cache: yarn
if: ${{ steps.release-please.outputs.release_created }}

- name: Install dependencies
run: yarn install --frozen-lockfile
if: ${{ steps.release-please.outputs.release_created }}

- name: Release to NPM
run: npm publish ./packages/${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }}
if: ${{ steps.release-please.outputs.release_created }}
1 change: 0 additions & 1 deletion .husky/pre-push

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"check-format": "yarn prettier --list-different",
"test": "jest",
"lint": "eslint --ignore-path .gitignore .",
"validate": "yarn lint && yarn check-types && yarn check-format",
"prepare": "husky install"
"validate": "yarn lint && yarn check-types && yarn check-format"
},
"devDependencies": {
"@types/eslint": "^8.40.2",
Expand All @@ -66,7 +65,6 @@
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4936,11 +4936,6 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@^8.0.3:
version "8.0.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==

[email protected]:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
Expand Down
Loading