From b99abb92ad9bea09bb5a7cbe917c96a4c89aa72b Mon Sep 17 00:00:00 2001 From: jatZama Date: Mon, 2 Dec 2024 14:07:03 +0100 Subject: [PATCH] chore: fix workflows --- .github/workflows/fhevm-core-contracts-publish.yml | 6 ++++-- .../workflows/fhevm-core-contracts-publishprerelease.yml | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fhevm-core-contracts-publish.yml b/.github/workflows/fhevm-core-contracts-publish.yml index e5d5f90..6770c5e 100644 --- a/.github/workflows/fhevm-core-contracts-publish.yml +++ b/.github/workflows/fhevm-core-contracts-publish.yml @@ -14,10 +14,12 @@ jobs: - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20.x - - run: cd contracts - - run: .env.example .env + - run: cp .env.example .env + working-directory: ./contracts - run: npm ci --include=optional + working-directory: ./contracts - run: npm run compile + working-directory: ./contracts - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1 with: token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/fhevm-core-contracts-publishprerelease.yml b/.github/workflows/fhevm-core-contracts-publishprerelease.yml index dd65708..1ca431c 100644 --- a/.github/workflows/fhevm-core-contracts-publishprerelease.yml +++ b/.github/workflows/fhevm-core-contracts-publishprerelease.yml @@ -14,10 +14,12 @@ jobs: - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20.x - - run: cd contracts - run: cp .env.example .env + working-directory: ./contracts - run: npm ci --include=optional + working-directory: ./contracts - run: npm run compile + working-directory: ./contracts - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1 with: tag: prerelease