Skip to content

Commit

Permalink
Merge pull request #81 from mattf96s/chore/update-changeset-pipeline
Browse files Browse the repository at this point in the history
chore(deployment): update changesets
  • Loading branch information
mattf96s committed May 14, 2024
2 parents 3e07546 + b5b3365 commit af31c67
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 80 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
if: ${{ github.repository_owner == 'mattf96s' }}
name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -17,6 +18,8 @@ jobs:

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Setup Node.js 20
uses: actions/setup-node@v4
Expand All @@ -26,28 +29,15 @@ jobs:
cache: "pnpm"

- name: Install Dependencies
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Create Release Pull Request
uses: changesets/action@v1
id: changesets
with:
commit: "chore: publish new release"
title: "chore: publish new release"
commit: "chore(release): version packages"
title: "chore(release): version packages"
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get current branch
id: get_branch
run: echo "CURRENT_BRANCH=$(git branch --show-current)" >> $GITHUB_ENV

- name: Update lock file
if: env.CURRENT_BRANCH == 'changeset-release/main'
run: pnpm install --lockfile-only

- name: Commit lock file
if: env.CURRENT_BRANCH == 'changeset-release/main'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update lock file"
branch: changeset-release/main
NODE_ENV: "production"
11 changes: 0 additions & 11 deletions apps/web/knip.json

This file was deleted.

7 changes: 3 additions & 4 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@remix-run/serve": "^2.9.2",
"@sentry/profiling-node": "^7.114.0",
"@sentry/remix": "^7.114.0",
"@tanstack/react-table": "^8.17.0",
"@tanstack/react-table": "^8.17.3",
"@uidotdev/usehooks": "^2.4.1",
"@vercel/analytics": "^1.2.2",
"@vercel/remix": "2.9.2-patch.2",
Expand All @@ -65,7 +65,7 @@
"date-fns": "^3.6.0",
"dompurify": "^3.1.3",
"embla-carousel-react": "^8.0.4",
"framer-motion": "^11.1.9",
"framer-motion": "^11.2.0",
"idb-keyval": "^6.2.1",
"idle-task": "^4.3.0",
"isbot": "^5.1.6",
Expand All @@ -85,7 +85,7 @@
"react-virtuoso": "^4.7.10",
"remix-themes": "^1.3.1",
"remix-utils": "^7.6.0",
"shiki": "^1.5.1",
"shiki": "^1.5.2",
"sonner": "^1.4.41",
"spin-delay": "^2.0.0",
"tailwind-merge": "^2.3.0",
Expand Down Expand Up @@ -118,7 +118,6 @@
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-tailwindcss": "^3.15.1",
"knip": "^5.15.1",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"apps/*",
"packages/*"
],
"packageManager": "[email protected]",
"description": "QuackDB - An online DuckDB SQL playground and editor",
"scripts": {
"build": "turbo run build",
Expand All @@ -26,7 +27,7 @@
"set-node-v": "pnpm env use --global 20",
"typecheck": "turbo run typecheck",
"knip": "knip",
"release": "changeset version"
"release": "turbo build && changeset version"
},
"devDependencies": {
"@biomejs/biome": "^1.7.3",
Expand Down
Loading

0 comments on commit af31c67

Please sign in to comment.