Skip to content

Commit d08fc0b

Browse files
committed
Updated publish script
1 parent 3b629f3 commit d08fc0b

4 files changed

Lines changed: 6 additions & 76 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
- name: Install Dependencies
3434
run: npm ci
3535

36+
- name: Run Build
37+
run: npm run build
38+
3639
- name: Run Tests
3740
run: npm test
3841

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
scope: '@securenative'
2727
- name: Install Dependencies
2828
run: npm install
29-
- name: Run Tests
30-
run: npm test
3129
- name: Run Build
3230
run: npm run build
31+
- name: Run Tests
32+
run: npm test
3333
- name: Create NPMRC
3434
run: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc
3535
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"debug-inspector": "node-debug index.ts --debug-brk",
2020
"coverage": "codecov",
2121
"test": "NODE_ENV=test nyc --reporter=lcov mocha -r ts-node/register './src/**/*.spec.ts'",
22-
"publish": "npm publish --access public",
22+
"release": "npm publish --access public",
2323
"semantic-release": "semantic-release"
2424
},
2525
"dependencies": {

0 commit comments

Comments
 (0)