Skip to content

Commit

Permalink
Always build after install
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieubosquet committed Jul 12, 2021
1 parent cf87389 commit 9fc6445
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm audit --production --audit-level high
- run: npm ci
- run: npm run build
- run: npm run test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"start": "npm run build && node .",
"test": "jest",
"postinstall": "npm run build",
"prepare": "[[ -n \"$CI\" ]] || husky install"
"prepare": "[[ -n \"$CI\" ]] || husky install",
"prepublishOnly": "npm run audit && npm ci && npm run test"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down

0 comments on commit 9fc6445

Please sign in to comment.