Skip to content

Commit

Permalink
Version Packages (#134)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rogin Farrer <rfarrer@wayfair.com>
  • Loading branch information
3 people committed Jan 24, 2023
1 parent 585c6a7 commit 0fdb4da
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .changeset/thick-mirrors-complain.md

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:

jobs:
main:
name: Tests
runs-on: ubuntu-latest
# To use Turborepo Remote Caching, set the following environment variables for the job.
env:
CI: true
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -23,7 +26,8 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: latest
version: 7
run_install: false

- name: Install Node.js
uses: actions/setup-node@v3
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
release:
name: Publish & Deploy
name: Release
runs-on: ubuntu-latest
env:
CI: true
Expand All @@ -17,11 +17,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
fetch-depth: 2

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand All @@ -30,6 +27,12 @@ jobs:
version: 7
run_install: false

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
Expand All @@ -44,6 +47,12 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

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

- name: Install Dependencies
run: pnpm install

Expand All @@ -53,7 +62,9 @@ jobs:
- name: Create release PR or publish to npm
uses: changesets/action@v1
with:
publish: pnpm publish
publish: pnpm publish -r
commit: 'chore: update versions'
title: 'chore: update versions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 7 additions & 0 deletions example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example

## 1.0.2

### Patch Changes

- Updated dependencies [cd21fd4]
- @collapsed/react@4.0.1

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "example",
"private": true,
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",
"scripts": {
"start": "parcel index.html",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @collapsed/core

## 4.0.1

### Patch Changes

- cd21fd4: Remove package.json exports

## 4.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@collapsed/core",
"version": "4.0.0",
"version": "4.0.1",
"author": "Rogin Farrer <rogin@roginfarrer.com>",
"description": "A framework-agnostic utility for creating flexible and accessible expand/collapse components.",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Changelog has been moved to [the releases tab](https://github.com/roginfarrer/react-collapsed/releases).

## 4.0.1

### Patch Changes

- cd21fd4: Remove package.json exports
- Updated dependencies [cd21fd4]
- @collapsed/core@4.0.1

## 4.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@collapsed/react",
"version": "4.0.0",
"version": "4.0.1",
"author": "Rogin Farrer <rogin@roginfarrer.com>",
"description": "A React custom-hook for creating flexible and accessible expand/collapse components.",
"license": "MIT",
Expand Down Expand Up @@ -66,7 +66,7 @@
"vite": "^3.2.4"
},
"dependencies": {
"@collapsed/core": "4.0.0",
"@collapsed/core": "workspace:*",
"tiny-warning": "^1.0.3"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fdb4da

Please sign in to comment.