Skip to content

Commit

Permalink
enable changests (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Apr 28, 2023
1 parent ca7bc83 commit a6a9a78
Show file tree
Hide file tree
Showing 7 changed files with 1,097 additions and 2 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)
7 changes: 7 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "../scripts/changelog.js",
"commit": false,
"access": "public",
"baseBranch": "main"
}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-20.04
timeout-minutes: 20
permissions:
contents: write
id-token: write
issues: write
repository-projects: write
deployments: write
packages: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

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

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-store
run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Use pnpm store
uses: actions/cache@v3
id: pnpm-cache
with:
path: ${{ steps.pnpm-store.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install Dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- name: PR or Publish
id: changesets
uses: changesets/action@v1.4.1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
}
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@changesets/get-github-info": "^0.5.2",
"@testing-library/jest-dom": "^5.3.0",
"@testing-library/react": "^14.0.0",
"@types/jest": "24.0.23",
Expand All @@ -70,6 +72,7 @@
"@typescript-eslint/parser": "2.11.0",
"codecov": "3.7.1",
"cross-env": "^7.0.2",
"dotenv": "^16.0.3",
"eslint": "6.7.2",
"eslint-config-prettier": "6.7.0",
"eslint-plugin-react": "7.17.0",
Expand All @@ -90,6 +93,9 @@
"peerDependencies": {
"react": ">= 16.8.0"
},
"publishConfig": {
"provenance": true
},
"mangle": {
"regex": "^_"
},
Expand Down
Loading

0 comments on commit a6a9a78

Please sign in to comment.