Skip to content

Commit

Permalink
Merge pull request #31 from layer5io/release-gh
Browse files Browse the repository at this point in the history
[CI] Setup Changeset and Release workflow
  • Loading branch information
nebula-aac authored Aug 25, 2023
2 parents 3ead289 + f4f322b commit 93c85c1
Show file tree
Hide file tree
Showing 11 changed files with 2,162 additions and 1,418 deletions.
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)
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/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": ["@layer5/design-system"]
}
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
branches:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

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

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

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

#- name: Send a Slack notification if a publish happens
#if: steps.changesets.outputs.published == 'true'
# You can do something when a publish happens.
#run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@
"workspaces": [
"packages/*"
],
"packageManager": "[email protected]"
"scripts": {
"changeset": "changeset",
"version-packages": "changeset version"
},
"packageManager": "[email protected]",
"dependencies": {
"@changesets/cli": "^2.26.2"
}
}
7 changes: 7 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @layer5/sistent-components

## 0.1.0

### Minor Changes

- 322564c: Prerelease
5 changes: 4 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layer5/sistent-components",
"version": "0.0.0",
"version": "0.1.0",
"description": "Reusable React Components",
"main": "dist/index.umd.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -29,5 +29,8 @@
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.14.5",
"react": "^18.2.0"
},
"publishConfig": {
"access": "public"
}
}
2 changes: 2 additions & 0 deletions packages/design-system/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

dist/**
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@layer5/sistent-components": "0.0.0",
"@layer5/sistent-components": "0.1.0",
"@mui/material": "^5.14.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @layer5/sistent-svg

## 0.1.0

### Minor Changes

- 322564c: Prerelease
5 changes: 4 additions & 1 deletion packages/svg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layer5/sistent-svg",
"version": "0.0.0",
"version": "0.1.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -33,5 +33,8 @@
"ts-jest": "^29.1.1",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
}
}
3,485 changes: 2,071 additions & 1,414 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 93c85c1

Please sign in to comment.