From 984be5e7c9a2742953b91c9bd1ede57687c744ba Mon Sep 17 00:00:00 2001 From: Michael Potter Date: Tue, 2 Jul 2024 07:50:09 -0400 Subject: [PATCH 1/2] chore: add changeset --- .changeset/README.md | 8 ++++++++ .changeset/clever-files-drive.md | 5 +++++ .changeset/config.json | 11 +++++++++++ .changeset/pre.json | 8 ++++++++ 4 files changed, 32 insertions(+) create mode 100644 .changeset/README.md create mode 100644 .changeset/clever-files-drive.md create mode 100644 .changeset/config.json create mode 100644 .changeset/pre.json diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 0000000..e5b6d8d --- /dev/null +++ b/.changeset/README.md @@ -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) diff --git a/.changeset/clever-files-drive.md b/.changeset/clever-files-drive.md new file mode 100644 index 0000000..6af830f --- /dev/null +++ b/.changeset/clever-files-drive.md @@ -0,0 +1,5 @@ +--- +"@heymp/signals": major +--- + +Initial Release diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..b472e4a --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "restricted", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": ["sandbox", "vite-eslint-test"] +} diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000..925b78e --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,8 @@ +{ + "mode": "pre", + "tag": "next", + "initialVersions": { + "@heymp/signals": "0.0.1" + }, + "changesets": [] +} From b16797591bb1180cceacc6e654240d1376880786 Mon Sep 17 00:00:00 2001 From: Michael Potter Date: Tue, 2 Jul 2024 07:54:23 -0400 Subject: [PATCH 2/2] chore: added release workflow --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d96072c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: 20.x + + - 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 }}