Skip to content

Commit 9f5fce1

Browse files
committed
remove unused dependencies, add publish workflow
1 parent 88dfcf5 commit 9f5fce1

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/publish.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 14
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm install
17+
- run: npm test
18+
- name: Publish beta version to npm
19+
if: "github.event.release.prerelease"
20+
run: npm publish --tag beta
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,10 @@
4848
"ajv": "^7.0.0-rc.1",
4949
"ajv-formats": "^0.3.4",
5050
"chai": "^4.2.0",
51-
"dot": "^1.1.1",
5251
"eslint": "^7.2.0",
5352
"eslint-config-prettier": "^6.13.0",
54-
"glob": "^7.1.3",
5553
"husky": "^4.3.0",
5654
"jest": "^26.5.3",
57-
"js-beautify": "^1.8.9",
5855
"json-schema-test": "^2.0.0",
5956
"lint-staged": "^10.4.2",
6057
"prettier": "^2.1.2",

0 commit comments

Comments
 (0)