Skip to content

Commit

Permalink
f: use strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
aefhm committed Oct 13, 2023
1 parent 74cbbd6 commit b6f4ec1
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,17 @@ on: pull_request
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
package: [ clients/js, integrations/hardhat, contracts]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- uses: JS-DevTools/npm-publish@v2
- name: Publish ${{ matrix.package }} to NPM
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: clients/js
package: ${{ matrix.package }}
dry-run: true
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: integrations/hardhat
dry-run: true
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: contracts
dry-run: true

0 comments on commit b6f4ec1

Please sign in to comment.