Skip to content

Commit

Permalink
chore: configure changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed Jan 10, 2023
1 parent 33db9da commit ad8c6b4
Show file tree
Hide file tree
Showing 7 changed files with 1,263 additions and 660 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/changelog-git",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Changesets
on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: install pnpm
run: npm i pnpm@latest -g

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: install dependencies
run: pnpm install

- name: create and publish versions
uses: changesets/action@v1
with:
version: pnpm run version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
510 changes: 510 additions & 0 deletions ARCHIVED.CHANGELOG.md

Large diffs are not rendered by default.

646 changes: 0 additions & 646 deletions CHANGELOG.md

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
},
"devDependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@changesets/cli": "^2.26.0",
"@changesets/changelog-git": "^0.1.14",
"@commitlint/config-conventional": "^11.0.0",
"@dohooo/eslint-config": "^0.0.7",
"@react-native-community/eslint-config": "^2.0.0",
Expand Down
Loading

0 comments on commit ad8c6b4

Please sign in to comment.