Skip to content

Commit

Permalink
ci: add registry back
Browse files Browse the repository at this point in the history
  • Loading branch information
seiry committed Nov 11, 2023
1 parent b7b7ecc commit 1ed2837
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
# ref is *.*.*, no v
run: |
yarn build
npm login --registry=https://registry.npmjs.org/
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/seiry/use-mmdb"
"url": "git+https://github.com/seiry/use-mmdb.git"
},
"scripts": {
"dev": "concurrently \"yarn build --watch\" \"yarn storybook\" \"yarn test\" ",
Expand Down Expand Up @@ -111,6 +111,7 @@
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.34.0",
"babel-loader": "9.1.3",
"comlink": "^4.4.1",
"concurrently": "8.2.2",
"eslint": "8.53.0",
"eslint-config-airbnb": "19.0.4",
Expand Down
10 changes: 10 additions & 0 deletions src/webWorker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { expose } from 'comlink';

const obj = {
counter: 0,
inc() {
this.counter++;
},
};

expose(obj);
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8842,6 +8842,13 @@ __metadata:
languageName: node
linkType: hard

"comlink@npm:^4.4.1":
version: 4.4.1
resolution: "comlink@npm:4.4.1"
checksum: 3d953e987874bf0d60c02a3dd96e9f661141e58709eaab82097369c585382935651ce61f004e7bb1a5eb868ca8d8734d1cec885965ae53c56567d91b9539f2d0
languageName: node
linkType: hard

"commander@npm:11.1.0":
version: 11.1.0
resolution: "commander@npm:11.1.0"
Expand Down Expand Up @@ -18952,6 +18959,7 @@ __metadata:
"@vitest/coverage-v8": "npm:^0.34.0"
babel-loader: "npm:9.1.3"
buffer: "npm:^6.0.3"
comlink: "npm:^4.4.1"
concurrently: "npm:8.2.2"
eslint: "npm:8.53.0"
eslint-config-airbnb: "npm:19.0.4"
Expand Down

0 comments on commit 1ed2837

Please sign in to comment.