From 5c6d2385b7d5b86cd682fcb094884119d3fdb64e Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Wed, 18 Sep 2024 02:57:32 -0600 Subject: [PATCH] CI? --- .changeset/config.json | 11 ++++++ .github/workflows/release.yml | 66 +++++++++++++++++++++++++++++++++++ anura-types/CHANGELOG.md | 0 anura-types/package.json | 4 +-- create-anura-app/CHANGELOG.md | 0 package.json | 12 +++++-- pnpm-lock.yaml | 64 +++++++++++++++++++++++++++++++++ turbo.json | 17 +++++++++ 8 files changed, 169 insertions(+), 5 deletions(-) create mode 100644 .changeset/config.json create mode 100644 .github/workflows/release.yml create mode 100644 anura-types/CHANGELOG.md create mode 100644 create-anura-app/CHANGELOG.md create mode 100644 turbo.json diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..1a95b35 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", + "changelog": ["@changesets/changelog-github", { "repo": "motortruck1221/create-dreamland-app" }], + "commit": false, + "fixed": [], + "linked": [], + "access": "public", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8d2346c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,66 @@ +name: Release + +on: + #push: + # branches: + # - main + workflow_dispatch: + +defaults: + run: + shell: bash + +env: + FORCE_COLOR: true + +jobs: + changelog: + name: Changelog PR or Release + if: ${{ github.repository_owner == 'motortruck1221' }} + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install other silly deps + run: apt update && apt install inotify-tools binaryen wget make gcc uuid-runtime jq + + - name: Setup Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: nightly + target: wasm32-unknown-unknown + target: i686-unknown-linux-gnu + + - name: Setup PNPM + uses: pnpm/action-setup@v3 + with: + version: 9.1.1 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + + - name: Build Packages + run: pnpm run build + + #- name: Create Release Pull Request or Publish + #id: changesets + #uses: changesets/action@v1 + #with: + # version: pnpm run version + # publish: pnpm exec changeset publish + # commit: "[ci] release" + # title: "[ci] release" + #env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/anura-types/CHANGELOG.md b/anura-types/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/anura-types/package.json b/anura-types/package.json index 8b186d1..1f2e55d 100644 --- a/anura-types/package.json +++ b/anura-types/package.json @@ -1,9 +1,9 @@ { "name": "@mercuryworkshop/anura-types", "version": "1.0.0", + "private": "true", "description": "Types generated for anuraOS", - "scripts": { - }, + "scripts": {}, "keywords": [ "anura", "anuraOS", diff --git a/create-anura-app/CHANGELOG.md b/create-anura-app/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 8b881bd..8f34e69 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,21 @@ "version": "1.0.0", "description": "", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "format": "pnpm run format:code && pnpm run format:imports", + "format:code": "biome format ./ --write", + "format:imports": "biome check --apply .", + "build": "turbo build", + "version": "changeset version", + "preinstall": "npx -y only-allow pnpm" }, "author": "", "license": "MIT", "dependencies": { - "create-anura-app": "workspace:*" + "create-anura-app": "workspace:*" }, "devDependencies": { "@biomejs/biome": "^1.8.3", - "@changesets/cli": "^2.27.7" + "@changesets/cli": "^2.27.7", + "turbo": "^2.1.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5145d94..a3f8ec2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,6 +18,9 @@ importers: '@changesets/cli': specifier: ^2.27.7 version: 2.27.7 + turbo: + specifier: ^2.1.2 + version: 2.1.2 create-anura-app: dependencies: @@ -1625,6 +1628,40 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} + turbo-darwin-64@2.1.2: + resolution: {integrity: sha512-3TEBxHWh99h2yIzkuIigMEOXt/ItYQp0aPiJjPd1xN4oDcsKK5AxiFKPH9pdtfIBzYsY59kQhZiFj0ELnSP7Bw==} + cpu: [x64] + os: [darwin] + + turbo-darwin-arm64@2.1.2: + resolution: {integrity: sha512-he0miWNq2WxJzsH82jS2Z4MXpnkzn9SH8a79iPXiJkq25QREImucscM4RPasXm8wARp91pyysJMq6aasD45CeA==} + cpu: [arm64] + os: [darwin] + + turbo-linux-64@2.1.2: + resolution: {integrity: sha512-fKUBcc0rK8Vdqv5a/E3CSpMBLG1bzwv+Q0Q83F8fG2ZfNCNKGbcEYABdonNZkkx141Rj03cZQFCgxu3MVEGU+A==} + cpu: [x64] + os: [linux] + + turbo-linux-arm64@2.1.2: + resolution: {integrity: sha512-sV8Bpmm0WiuxgbhxymcC7wSsuxfBBieI98GegSwbr/bs1ANAgzCg93urIrdKdQ3/b31zZxQwcaP4FBF1wx1Qdg==} + cpu: [arm64] + os: [linux] + + turbo-windows-64@2.1.2: + resolution: {integrity: sha512-wcmIJZI9ORT9ykHGliFE6kWRQrlH930QGSjSgWC8uFChFFuOyUlvC7ttcxuSvU9VqC7NF4C+GVAcFJQ8lTjN7g==} + cpu: [x64] + os: [win32] + + turbo-windows-arm64@2.1.2: + resolution: {integrity: sha512-zdnXjrhk7YO6CP+Q5wPueEvOCLH4lDa6C4rrwiakcWcPgcQGbVozJlo4uaQ6awo8HLWQEvOwu84RkWTdLAc/Hw==} + cpu: [arm64] + os: [win32] + + turbo@2.1.2: + resolution: {integrity: sha512-Jb0rbU4iHEVQ18An/YfakdIv9rKnd3zUfSE117EngrfWXFHo3RndVH96US3GsT8VHpwTncPePDBT2t06PaFLrw==} + hasBin: true + typescript@5.5.4: resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} engines: {node: '>=14.17'} @@ -3512,6 +3549,33 @@ snapshots: dependencies: is-number: 7.0.0 + turbo-darwin-64@2.1.2: + optional: true + + turbo-darwin-arm64@2.1.2: + optional: true + + turbo-linux-64@2.1.2: + optional: true + + turbo-linux-arm64@2.1.2: + optional: true + + turbo-windows-64@2.1.2: + optional: true + + turbo-windows-arm64@2.1.2: + optional: true + + turbo@2.1.2: + optionalDependencies: + turbo-darwin-64: 2.1.2 + turbo-darwin-arm64: 2.1.2 + turbo-linux-64: 2.1.2 + turbo-linux-arm64: 2.1.2 + turbo-windows-64: 2.1.2 + turbo-windows-arm64: 2.1.2 + typescript@5.5.4: {} ufo@1.5.4: {} diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..e901821 --- /dev/null +++ b/turbo.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://turbo.build/schema.json", + "pipeline": { + "types": { + "dependsOn": ["^types"], + }, + "build": { + "dependsOn": ["^build", "types"], + "outputs": ["dist"] + }, + "lint": {}, + "dev": { + "cache": false, + "persistent": true + } + } +}