Skip to content

Commit

Permalink
ci: fixes reusable publish workflow to install deps before trying to …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
mathewmeconry authored Jan 24, 2024
1 parent 1b8ca59 commit 2a6704c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .github/workflows/reusable-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 2a6704c

Please sign in to comment.