Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Setup'
description: 'Setup pnpm, Node.js, and install dependencies'
runs:
using: 'composite'
steps:
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install dependencies
shell: bash
run: pnpm install
74 changes: 20 additions & 54 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Build
run: pnpm build

test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Run Tests
run: pnpm test

Expand All @@ -49,16 +35,9 @@ jobs:
image: docker:dind
options: --privileged
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- uses: docker/setup-docker-action@v4
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- uses: docker/setup-docker-action@v5
- name: Run E2E Tests
run: pnpm test:e2e

Expand All @@ -68,17 +47,10 @@ jobs:
name: Publish next release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- uses: ./.github/actions/setup
- name: Set next version with timestamp and commit SHA
run: |
BASE_VERSION=$(node -p "require('./package.json').version")
Expand All @@ -99,27 +71,21 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
name: Release tag
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Create GitHub release
id: create-new-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm install
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
- name: Build
run: pnpm build
- name: Publish packages with latest tag
run: pnpm release --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub release
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"vitest": "^4.0.2"
},
"engines": {
"node": ">=18.18.0"
"node": ">=22.11.0"
},
"packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8"
}