fix: remove unnecessary git coords during on-push workflow #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-test-on-pr | |
on: [ pull_request, workflow_dispatch ] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: 'Setup git coordinates' | |
run: | | |
echo user: ${{secrets.GH_USER}} | |
echo token: ${{secrets.GITHUB_TOKEN}} | |
git remote set-url origin https://${{secrets.GITHUB_USER}}:${{secrets.GITHUB_TOKEN}}@github.com/decentralized-identity/agent-explorer.git | |
git config user.name $GH_USER | |
git config user.email $GH_EMAIL | |
- name: 'Setup Node.js with pnpm cache' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run -r build:js | |
- run: pnpm run test |