From 2a6704ca5dc4c317c4f00b1a508f9b67c4fea6a7 Mon Sep 17 00:00:00 2001 From: Mathias Scherer Date: Wed, 24 Jan 2024 15:56:03 +0100 Subject: [PATCH] ci: fixes reusable publish workflow to install deps before trying to publish (#47) * ci: fixes reusable publish workflow to install deps before trying to publish * ci(labeler): fixes labeler configuration * chore: fixes styling in labeler.yml file --- .github/labeler.yml | 32 ++++++++++++++++---------- .github/workflows/reusable-publish.yml | 2 ++ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 62fc4672..8b790737 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,19 +1,27 @@ contracts: - - ./contracts/**/* - - ./contracts/* - - ./.github/workflows/contracts-*.yml + - changed-files: + - any-glob-to-any-file: + - ./contracts/**/* + - ./contracts/* + - ./.github/workflows/contracts-*.yml sdk: - - ./sdk/**/* - - ./sdk/* - - ./.github/workflows/sdk-*.yml + - changed-files: + - any-glob-to-any-file: + - ./sdk/**/* + - ./sdk/* + - ./.github/workflows/sdk-*.yml subgraph: - - ./subgraph/**/* - - ./subgraph/* - - ./.github/workflows/subgraph-*.yml + - changed-files: + - any-glob-to-any-file: + - ./subgraph/**/* + - ./subgraph/* + - ./.github/workflows/subgraph-*.yml configs: - - ./configs/**/* - - ./configs/* - - ./.github/workflows/configs-*.yml + - changed-files: + - any-glob-to-any-file: + - ./configs/**/* + - ./configs/* + - ./.github/workflows/configs-*.yml diff --git a/.github/workflows/reusable-publish.yml b/.github/workflows/reusable-publish.yml index 9b35eb2a..3d6696df 100644 --- a/.github/workflows/reusable-publish.yml +++ b/.github/workflows/reusable-publish.yml @@ -28,6 +28,8 @@ jobs: cache: 'yarn' node-version: 18.x registry-url: https://registry.npmjs.org + - name: Install deps + run: yarn install --frozen-lockfile - name: Publish NPM pkg (${{ inputs.package }} - ${{ inputs.version }}) run: yarn publish --no-git-tag-version --new-version ${{ inputs.version }} working-directory: ./${{ inputs.package }}