Skip to content

Commit 06e012e

Browse files
authored
Merge pull request #60 from codemod-com/github_action
fix(workflow/publish): improve publish process with pnpx for run codemod CLI, fail-fast fix, and test step update
2 parents dc2bbbf + 4758db7 commit 06e012e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
runs-on: ubuntu-latest
5252
needs: prepare-matrix
5353
strategy:
54+
fail-fast: false
5455
matrix: ${{fromJson(needs.prepare-matrix.outputs.codemod_files)}}
5556
env:
5657
CODEMOD_API_KEY: ${{ secrets.CODEMOD_API_KEY }}
@@ -78,12 +79,11 @@ jobs:
7879
echo "Testing codemod in: $DIR"
7980
cd "$DIR"
8081
pnpm install
81-
pnpm run test
82+
pnpm run --if-present test
8283
8384
- name: Publish codemod
8485
run: |
8586
DIR=$(dirname "${{ matrix.file }}")
8687
echo "Publishing codemod in: $DIR"
8788
cd "$DIR"
88-
pnpm install
89-
npx codemod publish
89+
pnpx codemod publish

0 commit comments

Comments
 (0)