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

ci: fix release workflow #15

Merged
merged 1 commit into from
Oct 16, 2024
Merged
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
33 changes: 0 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ jobs:

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
submodules: 'recursive'

- uses: pnpm/action-setup@v4
if: ${{ steps.release.outputs.release_created }}
with:
version: 8.14.1

- name: Setup node
if: ${{ steps.release.outputs.release_created }}
Expand All @@ -31,32 +24,6 @@ jobs:
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Cache NPM dependencies
if: ${{ steps.release.outputs.release_created }}
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install dependencies
if: ${{ steps.release.outputs.release_created && steps.cache.outputs.cache-hit != 'true' }}
run: pnpm install --frozen-lockfile

- name: Install dependencies for colonyNetwork
if: ${{ steps.release.outputs.release_created }}
working-directory: ./vendor/colonyNetwork
run: pnpm install --frozen-lockfile

- name: Compile colonyNetwork contracts
if: ${{ steps.release.outputs.release_created }}
working-directory: ./vendor/colonyNetwork
run: npx hardhat compile

- name: Run build
if: ${{ steps.release.outputs.release_created }}
run: pnpm run build

- name: Publish to npm
if: ${{ steps.release.outputs.release_created }}
run: npm publish
Expand Down