Skip to content

Commit

Permalink
Merge pull request #98 from aragon/fix/add-workflow-to-build-artifacts
Browse files Browse the repository at this point in the history
feat: add workflow to build artifacts
  • Loading branch information
Rekard0 authored Aug 8, 2024
2 parents f6d0364 + cf1b944 commit 0fd5cb0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/artifacts-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Artifacts build

on:
push:
branches:
- main
- develop
pull_request:
paths:
- 'artifacts/**'
- '.github/workflows/artifacts-*.yml'
workflow_dispatch:
workflow_call:

jobs:
formatting-linting:
uses: ./.github/workflows/formatting-linting.yml
tests:
runs-on: 'ubuntu-latest'
defaults:
run:
working-directory: artifacts
steps:
- name: 'Check out the repo'
uses: 'actions/checkout@v3'

- name: 'Install Node.js'
uses: 'actions/setup-node@v3'
with:
cache: 'yarn'
node-version: 18

- name: 'Install the dependencies'
run: 'yarn install --frozen-lockfile'

- name: 'Build the artifacts'
run: 'yarn build'
2 changes: 1 addition & 1 deletion .github/workflows/reusable-check-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
GITHUB_REF="${{ inputs.ref }}"
TAG=${GITHUB_REF##*/}
VERSION=$(echo "$TAG" | sed -E 's/-(sdk|subgraph|contracts|configs)//')
VERSION=$(echo "$TAG" | sed -E 's/-(sdk|subgraph|contracts|configs|artifacts)//')
PACKAGE=${TAG##*-}
echo "package=$PACKAGE" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion artifacts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"access": "public"
},
"scripts": {
"build": "tsc",
"build": "tsc -p tsconfig.json",
"generate": "sh generateAbis.sh"
},
"engines": {
Expand Down

0 comments on commit 0fd5cb0

Please sign in to comment.