Skip to content

Commit

Permalink
chore: publish on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Nov 1, 2022
1 parent 8bc7a27 commit b59461a
Show file tree
Hide file tree
Showing 21 changed files with 1,798 additions and 118 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)
5 changes: 5 additions & 0 deletions .changeset/bright-cougars-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dimensiondev/kit': minor
---

remove getCookieValue
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/config@2.2.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/shiny-glasses-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dimensiondev/kit': minor
---

remove blobToText
5 changes: 5 additions & 0 deletions .changeset/stupid-onions-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dimensiondev/kit': minor
---

remove AbortSignal.timeout
5 changes: 5 additions & 0 deletions .changeset/yellow-badgers-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@masknet/kit': minor
---

remove dependency to lodash
21 changes: 0 additions & 21 deletions .github/workflows/build.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'pnpm'
- uses: DimensionDev/github-token-action@latest
with:
registry: true
- run: pnpm install
- run: npx tsc --noEmit
- run: pnpm run lint
- run: pnpm test
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
push:
branches: [master]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
- run: pnpm install
- run: npx tsc
- uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@dimensiondev/kit",
"name": "@masknet/kit",
"version": "0.0.0",
"packageManager": "pnpm@7.13.2",
"description": "A toolkit library.",
"license": "MIT",
"author": "Septs",
"author": "DimensionDev",
"main": "./esm/index.js",
"module": "./esm/index.js",
"types": "./esm/index.d.ts",
Expand All @@ -13,15 +14,14 @@
"src"
],
"scripts": {
"build": "tsc -p ./tsconfig.json"
"build": "tsc -p ./tsconfig.json",
"release": "pnpm run build && npx changeset publish"
},
"devDependencies": {
"@types/lodash-es": "^4.17.6",
"prettier": "^2.5.1",
"typescript": "^4.7.0-dev.20220223",
"user-agent-data-types": "^0.2.0"
"@changesets/cli": "^2.25.2",
"prettier": "^2.7.1",
"typescript": "^4.8.4",
"user-agent-data-types": "^0.3.0"
},
"dependencies": {
"lodash-es": "^4.17.21"
}
"dependencies": {}
}
Loading

0 comments on commit b59461a

Please sign in to comment.