Skip to content

Commit

Permalink
Merge pull request #9 from plutotcool/chore/turbo
Browse files Browse the repository at this point in the history
Chore: turbo
  • Loading branch information
bastienrobert authored Dec 12, 2023
2 parents bc6ffc7 + cdbfe70 commit d5e1ed9
Show file tree
Hide file tree
Showing 9 changed files with 1,106 additions and 4,648 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "plutotcool/configurations" }
],
"baseBranch": "main",
"commit": false,
"access": "public",
"updateInternalDependencies": "patch"
}
33 changes: 26 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup pnpm 8
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 20.x

- name: Configure git
run: |
git config --local user.email "plutotcool+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- run: pnpm i
- uses: plutotcool/[email protected]
- name: Install Dependencies
run: pnpm i

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,7 @@ dist
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.pnp.*

# turborepo
.turbo
13 changes: 0 additions & 13 deletions lerna.json

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "lerna bootstrap",
"release": "turbo run build && changeset publish",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"lerna": "^3.22.1"
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"turbo": "^1.11.1"
}
}
Loading

0 comments on commit d5e1ed9

Please sign in to comment.