Skip to content

Commit

Permalink
fix: gh actions release build job (#771)
Browse files Browse the repository at this point in the history
* fix: gh actions release build job

* fix: add prepack for tests [gh-516]
  • Loading branch information
Nahuel Alejandro Ramos authored Jun 23, 2023
1 parent 65fc701 commit da81abf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
# Ensure that the README is published with the package
- run: rm -f packages/cli/README.md && cp README.md packages/cli
- run: npm ci --workspace packages/cli
- run: npm ci
- run: npm publish --provenance --workspace packages/cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
cache-dependency-path: package-lock.json
- run: npm config set fund false && npm set audit false
- run: npm ci
- run: npm run prepack
- run: npm run test
- run: npm run test:e2e
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"private": true,
"version": "0.0.0",
"scripts": {
"prepare": "npx simple-git-hooks && npm run prepare --workspaces",
"lint": "eslint . --ext .ts,.js,.mjs",
"lint:fix": "eslint . --ext .ts,.js,.mjs --fix",
"prepack": "npm run prepack --workspaces",
"prepare": "npx simple-git-hooks && npm run prepare --workspaces",
"test": "npm run test --workspaces",
"test:e2e": "npm run test:e2e --workspaces"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"scripts": {
"clean": "rimraf ./dist",
"prepare": "npm run clean && tsc --build",
"prepack": "npx oclif manifest",
"prepare": "npm run clean && tsc --build",
"test": "jest --selectProjects unit",
"test:e2e": "npm run prepare && cross-env NODE_CONFIG_DIR=./e2e/config jest --selectProjects E2E",
"test:e2e:local": "cross-env CHECKLY_ENV=local npm run test:e2e",
Expand Down
5 changes: 3 additions & 2 deletions packages/create-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"private": false,
"scripts": {
"clean": "rimraf ./dist",
"test": "jest --selectProjects unit",
"test:e2e": "echo \"Error: no test specified\"",
"prepack": "echo \"Warning: no oclif manifest configured\"",
"prepare": "npm run clean && tsc --build",
"test": "jest --selectProjects unit",
"test:e2e": "echo \"Warning: no test specified\"",
"start": "node ./index.mjs",
"watch": "tsc --watch"
},
Expand Down

0 comments on commit da81abf

Please sign in to comment.