Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jun 18, 2024
1 parent 5f68ef3 commit e4156d9
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cache-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
node-version: 20
cache: "pnpm"
- run: pnpm submodules
- run: pnpm install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm exec tsx internal/scripts/cache-pages
env:
FIREBASE_PRIVATE_KEY_ID: ${{ secrets.FIREBASE_PRIVATE_KEY_ID }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm run build
- run: pnpm run commit-check
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
node-version: 20
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm exec playwright install --with-deps
- run: pnpm run build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/example-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm build
- run: pnpm submodules
- run: pnpm install
- run: pnpm build:examples
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm run build
- run: pnpm run lint
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
node-version: 20
cache: "pnpm"
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm install semantic-release-config-techor --workspace-root
- run: pnpm run build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm run build
- run: pnpm test
2 changes: 2 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm submodules
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm install
- run: pnpm run build
- run: pnpm run type-check
5 changes: 1 addition & 4 deletions submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

set -e

if [ -n "$GH_TOKEN" ]; then
echo "Running in CI environment, using GH_TOKEN for authentication"
git config --global url."https://${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
elif [ -n "$GITHUB_TOKEN" ]; then
if [ -n "$GITHUB_TOKEN" ]; then
echo "Running in CI environment, using GITHUB_TOKEN for authentication"
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
else
Expand Down

0 comments on commit e4156d9

Please sign in to comment.