diff --git a/.github/workflows/firebase-deploy-dev.yaml b/.github/workflows/firebase-deploy-dev.yaml index e496f051..0903cf20 100644 --- a/.github/workflows/firebase-deploy-dev.yaml +++ b/.github/workflows/firebase-deploy-dev.yaml @@ -42,7 +42,7 @@ jobs: sed -i -e 's/"@p0tion\/actions": "[^"]*"/"@devtion\/actions": "latest"/g' ./packages/backend/package.json # Update string literals in TypeScript files - sed -i 's|p0tion/actions|devtion/actions|g' packages/**/*.ts + find packages -type f -name '*.ts' ! -path '*/node_modules/*' -exec sed -i 's|p0tion/actions|devtion/actions|g' {} + cat ./packages/backend/package.json cat ./packages/backend/src/functions/ceremony.ts diff --git a/.github/workflows/firebase-deploy-staging.yaml b/.github/workflows/firebase-deploy-staging.yaml index 9b07ef1a..ca54433e 100644 --- a/.github/workflows/firebase-deploy-staging.yaml +++ b/.github/workflows/firebase-deploy-staging.yaml @@ -42,7 +42,7 @@ jobs: sed -i -e 's/"@p0tion\/actions": "[^"]*"/"@stagtion\/actions": "latest"/g' ./packages/backend/package.json # Update string literals in TypeScript files - sed -i 's|p0tion/actions|stagtion/actions|g' packages/**/*.ts + find packages -type f -name '*.ts' ! -path '*/node_modules/*' -exec sed -i 's|p0tion/actions|stagtion/actions|g' {} + - name: Install npm packages and write env run: | diff --git a/.github/workflows/publish-dev-packages.yaml b/.github/workflows/publish-dev-packages.yaml index 12ecf687..f9c9113f 100644 --- a/.github/workflows/publish-dev-packages.yaml +++ b/.github/workflows/publish-dev-packages.yaml @@ -43,8 +43,8 @@ jobs: sed -i -e 's/"name": "@p0tion\/actions"/"name": "@devtion\/actions"/g' ./packages/actions/package.json # Update string literals in TypeScript and JS files - sed -i 's|p0tion/actions|devtion/actions|g' packages/**/*.ts - sed -i 's|p0tion/actions|devtion/actions|g' packages/**/*.js + find packages -type f -name '*.ts' ! -path '*/node_modules/*' -exec sed -i 's|p0tion/actions|devtion/actions|g' {} + + find packages -type f -name '*.js' ! -path '*/node_modules/*' -exec sed -i 's|p0tion/actions|devtion/actions|g' {} + - name: Install lerna run: | diff --git a/.github/workflows/publish-staging-packages.yaml b/.github/workflows/publish-staging-packages.yaml index 6eb110ec..c24690fe 100644 --- a/.github/workflows/publish-staging-packages.yaml +++ b/.github/workflows/publish-staging-packages.yaml @@ -43,8 +43,8 @@ jobs: sed -i -e 's/"name": "@p0tion\/actions"/"name": "@stagtion\/actions"/g' ./packages/actions/package.json # Update string literals in TypeScript and JS files - sed -i 's|p0tion/actions|stagtion/actions|g' packages/**/*.ts - sed -i 's|p0tion/actions|stagtion/actions|g' packages/**/*.js + find packages -type f -name '*.ts' ! -path '*/node_modules/*' -exec sed -i 's|p0tion/actions|stagtion/actions|g' {} + + find packages -type f -name '*.js' ! -path '*/node_modules/*' -exec sed -i 's|p0tion/actions|stagtion/actions|g' {} + - name: Install lerna run: |