Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dev experience #11

Merged
merged 24 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "saasquatch/raisins" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/hungry-meals-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@raisins/react": minor
---

Upgrade to Bunshi 2.1
16 changes: 0 additions & 16 deletions .devcontainer/Dockerfile

This file was deleted.

23 changes: 13 additions & 10 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"dockerComposeFile": "docker-compose.yml",
"service": "development",
"forwardPorts": [8080],
"extensions": [
"esbenp.prettier-vscode",
// LiveShare : https://marketplace.visualstudio.com/items?itemName=ms-vsliveshare.vsliveshare
"ms-vsliveshare.vsliveshare",
// Cucumber: https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
"alexkrechik.cucumberautocomplete"
]
"name": "Playwright Testing",
"image": "mcr.microsoft.com/playwright:v1.44.0-jammy",
"forwardPorts": [9323],
"postCreateCommand": "npm install",
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions"
]
}
}
}
33 changes: 0 additions & 33 deletions .devcontainer/docker-compose.yml

This file was deleted.

34 changes: 16 additions & 18 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
name: Build and Test
name: Validate PR

on:
push:
branches:
- production
paths:
- packages/**
pull_request:
paths:
- packages/**

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-test:
name: Deploy to static site bucket
name: Build and test
runs-on: ubuntu-latest

container:
image: mcr.microsoft.com/playwright:v1.44.0-jammy
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Node Setup 16.x
uses: actions/setup-node@v1
- name: Node Setup 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
cache: npm
node-version: 20.x

- name: Install dependencies (globally)
run: npm i
- uses: bahmutov/npm-install@v1

- name: Lerna bootrap dependencies for packages/**
run: npx lerna bootstrap
- name: Lint (via Turbo)
run: npm run lint

- name: Build (via Turbo)
run: npm run build
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/merge-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Merge to Main

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
create-pr:
name: Update PR or Release
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.44.0-jammy
steps:
- name: Checkout Repo
uses: actions/checkout@v3

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

- uses: bahmutov/npm-install@v1

- name: Build
run: npm run build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# Runs `npm i` after changeset to make sure that `package-lock.json` files are also updated
# Without this change only `package.json` files are updated, without `package-lock.json` changes.
version: npm run version
# Runs changesets on publish - will create tags and deploy to NPM
publish: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.LOGAN_NPM_PUBLISHING_TOKEN }}
Loading
Loading