Skip to content

Commit a92c9d0

Browse files
committed
tewtss
1 parent 3e3fe5d commit a92c9d0

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ jobs:
2727
- name: Install npm dependencies
2828
run: npm ci
2929

30-
- name: Build
30+
- name: Build and Test
3131
run: npm run build
3232

33-
- name: Test
34-
run: npm test
35-
3633
- name: Publish to NPM
3734
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
38-
run: npm publish
35+
run: npm run trypublish
3936
env:
4037
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
"type": "module",
88
"scripts": {
99
"clean": "rimraf lib",
10-
"test": "nyc mocha --require @babel/register",
1110
"lint": "eslint src/**",
12-
"build": "npm run clean && npm run lint && npm run test && babel ./src -d ./lib",
11+
"test": "nyc mocha --require @babel/register",
12+
"compile": "babel ./src -d ./lib",
13+
"verify": "npm run lint && npm run test",
14+
"build": "npm run clean && npm run lint && npm run compile && npm run test",
15+
"prepublishOnly": "npm run build",
1316
"upgrade-interactive": "npm-check --update",
14-
"prepublish": "npm run build",
1517
"trypublish": "npm publish || true"
1618
},
1719
"repository": {

0 commit comments

Comments
 (0)