Skip to content

Commit

Permalink
Updating Changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhectorsosa committed Nov 20, 2023
1 parent d807565 commit 91aea19
Show file tree
Hide file tree
Showing 5 changed files with 1,125 additions and 1 deletion.
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)
17 changes: 17 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
"@search-params/react"
]
],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"docs"
]
}
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
push:
branches: [main]

jobs:
release:
if: github.repository == 'iamhectorsosa/search-params'

name: Release
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: pnpm/[email protected]
with:
version: 8.6.11

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
publish: pnpm release
version: pnpm run version # should be `pnpm run`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
"version": "1.0.0",
"description": "",
"scripts": {
"build": "turbo run build --filter=./packages/\\*"
"build": "turbo run build --filter=./packages/\\*",
"release": "changeset publish",
"version": "changeset version"
},
"keywords": [],
"author": {
"name": "Hector Sosa",
"url": "https://hectorsosa.me"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"turbo": "^1.10.16"
}
}
Loading

0 comments on commit 91aea19

Please sign in to comment.