Skip to content

Commit

Permalink
cicd: Add action for snapshot releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanie committed Apr 12, 2024
1 parent a3911ef commit 920b63c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release a snapshot

on:
# Only manual workflow trigger
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

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

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile

- name: Install dependencies for colonyNetwork
working-directory: ./vendor/colonyNetwork
run: npm ci

- name: Compile colonyNetwork contracts
working-directory: ./vendor/colonyNetwork
run: npx hardhat compile

- run: npm run build

0 comments on commit 920b63c

Please sign in to comment.