From 2420a8d0bbc8dc327fedc1590ca7d5916c0787eb Mon Sep 17 00:00:00 2001 From: Jonah Henriksson <33059163+JonahPlusPlus@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:16:53 -0500 Subject: [PATCH] Changed dependencies to peers + prepared CD --- .github/workflows/deploy-storybook.yml | 2 +- .github/workflows/publish.yml | 15 +++++++++++++++ package.json | 6 +++--- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 9a6e4e8..1a09036 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -1,4 +1,4 @@ -name: Build and Publish Storybook to GitHub Pages +name: Deploy Storybook Docs on: push: branches: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3430be8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,15 @@ +name: Publish NPM Package +on: + release: + types: [published] + workflow_dispatch: +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + - name: Publish to NPM + run: pnpm publish --access public --no-git-checks + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 00b0564..bab69cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "solid-effect", - "version": "1.0.0-beta.4", + "version": "1.0.0", "description": "A collection of utilities for working with EffectTS in SolidJS", "type": "module", "scripts": { @@ -58,13 +58,13 @@ "vite-plugin-solid": "^2.10.2", "vitest": "^2.1.2" }, - "dependencies": { + "peerDependencies": { "effect": "^3.8.4", "solid-js": "^1.9.3" }, "files": [ "dist", - "LICENCE-*" + "LICENSE-*" ], "main": "./dist/index.cjs", "module": "./dist/index.js",