fix: Remove unnecessary user cache invalidation when signing in to a … #147
This file contains hidden or 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: Deploy to Dev | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - dev | |
| concurrency: | |
| group: dev | |
| cancel-in-progress: false | |
| jobs: | |
| deployToDev: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| cache: 'pnpm' | |
| cache-dependency-path: 'pnpm-lock.yaml' | |
| node-version-file: '.nvmrc' | |
| - name: Disable Husky | |
| run: echo "HUSKY=0" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run unit tests | |
| run: pnpm test | |
| - name: Run lint | |
| run: pnpm lint | |
| - name: Determine version tag for build | |
| run: | | |
| VERSION_TAG=$(git tag --points-at HEAD | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1) | |
| if [ -z "$VERSION_TAG" ]; then | |
| VERSION_TAG="dev_${GITHUB_SHA:0:7}" | |
| fi | |
| echo "VITE_STUDIO_VERSION=$VERSION_TAG" >> $GITHUB_ENV | |
| - name: Build dev | |
| run: pnpm build:dev | |
| - name: Deploy to dev | |
| run: | | |
| mkdir deploy | |
| mv web deploy/ | |
| cp -R deploy-template/* deploy/ | |
| cd deploy | |
| CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME_DEV }} CLI_TARGET_PASSWORD='${{ secrets.HARPERDB_CLI_TARGET_PASSWORD_DEV }}' pnpm harperdb deploy_component project=hdbms target='${{ secrets.CLI_DEPLOY_TARGET_DEV }}' restart=false replicated=true |