name: CI on: pull_request: branches: - main push: branches: - main - develop tags-ignore: - 'v*' jobs: build: runs-on: debian-latest steps: - name: Check out repository uses: actions/checkout@v4.1.2 - name: Read package version uses: tyankatsu0105/read-package-version-actions@v1 id: version - name: Install dependencies run: bun install - name: Test project run: bun test --define __VERSION__='${{ steps.version.outputs.version }}' --define __EXTENSION_NAME='"tf2wikipricing"' - name: Build project run: bun run build - name: Archive production artifacts uses: actions/upload-artifact@v3 with: name: tf2wikipricing.user.js path: | dist/userscript/tf2wikipricing.user.js