Skip to content

Commit

Permalink
changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
dsl400 committed Nov 20, 2023
1 parent ed0d4ef commit 7d9014d
Show file tree
Hide file tree
Showing 10 changed files with 3,136 additions and 9 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/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/eight-kids-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@dsl400/rxhub": patch
---

add publish workflow
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on:
push:
branches:
- "main"
- "**"

jobs:
build:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish
on:
push:
branches:
- "main"

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "pnpm"

- run: pnpm install --frozen-lockfile
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
"name": "@dsl400/rxhub",
"version": "0.0.2",
"description": "Utility that provides all necesary tools to stream data in javascript applications",
"main": "index.js",
"type": "module",
"public": true,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"release": "npm run build && npm publish --access public",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsup src/index.ts --format cjs,esm --dts",
"release": "npm run build && npm publish",
"lint": "tsc",
"dev": "vitest",
"test": "vitest run"
},
"keywords": [
"rxhub",
Expand All @@ -17,5 +21,10 @@
"license": "MIT",
"dependencies": {
"rxjs": "^7.8.1"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"tsup": "^8.0.0",
"vitest": "^0.34.6"
}
}
Loading

0 comments on commit 7d9014d

Please sign in to comment.