Configure Renovate - abandoned (#4) #4
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: CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: "true" | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.33.2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm run start | |
| - name: Publish | |
| run: | | |
| latest="$(npm show "$(jq -r '.name' package.json)" versions --json | jq -r '.[0]')" | |
| dev="$(jq -r '.version' package.json)" | |
| if [ "$latest" = "$dev" ]; then | |
| echo "Version $dev is already published. Skipping publish step." | |
| else | |
| echo "Publishing version $dev to npm..." | |
| npm publish | |
| fi |