From 4552b93d132d81b87e488be5ed459120a75b0f0c Mon Sep 17 00:00:00 2001 From: Emily Williams Date: Tue, 17 Sep 2024 17:44:16 -0400 Subject: [PATCH] compile contracts in workflow --- .github/workflows/deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f884583..3bc1fd4b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: jobs: deploy: - name: release + name: release runs-on: group: npm-deploy environment: @@ -25,10 +25,10 @@ jobs: # Refer to it by calling env.NPM_TOKEN # This token is also limited by IP to ONLY work on the runner NPM_TOKEN: op://npm-deploy/npm-runner-token/secret - + - name: Checkout uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - + - name: Setup Node uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 with: @@ -36,13 +36,14 @@ jobs: node-version: 18 registry-url: 'https://registry.npmjs.org' - - name: Install dependencies - run: yarn install --immutable --immutable-cache - + - name: Install dependencies and compile contracts + run: | + yarn install --immutable --immutable-cache + yarn compile + - name: Release env: NPM_CONFIG_USERCONFIG: /dev/null NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && yarn publish -