Skip to content

Commit

Permalink
B Fixes publish-npm target for github release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jwloka committed Apr 18, 2024
1 parent 34492e0 commit 2bad70b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: publish
run: pnpm publish --recursive --access public --no-git-checks
run: pnpm publish-npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
},
"homepage": "https://github.com/quatico-solutions/websmith#readme",
"private": true,
"files": [
"LICENSE",
"README.md"
],
"scripts": {
"clean": "nx run-many --target=clean",
"lint": "nx run-many --target=lint",
Expand All @@ -38,7 +34,8 @@
"license:check": "license-check-and-add check -f license-config.json",
"license:add": "license-check-and-add add -f license-config.json",
"license:remove": "license-check-and-add remove -f license-config.json",
"preinstall": "npx only-allow pnpm"
"preinstall": "npx only-allow pnpm",
"publish-npm": "nx run-many --target=publish-npm"
},
"devDependencies": {
"@cucumber/gherkin": "^28.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"watch:test": "jest --watch",
"test": "jest --coverage --passWithNoTests",
"test:update-snapshots": "pnpm test -u",
"dist": "pnpm clean && pnpm lint && pnpm test && cross-env-shell NODE_ENV=production \"pnpm build\""
"dist": "pnpm clean && pnpm lint && pnpm test && cross-env-shell NODE_ENV=production \"pnpm build\"",
"publish-npm": "npm publish --access public"
},
"devDependencies": {
"@eslint/js": "^9.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"watch:test": "jest --watch",
"test": "jest --coverage",
"test:update-snapshots": "pnpm test -u",
"dist": "cross-env-shell NODE_ENV=production \"pnpm clean && pnpm lint && pnpm test && pnpm build\""
"dist": "cross-env-shell NODE_ENV=production \"pnpm clean && pnpm lint && pnpm test && pnpm build\"",
"publish-npm": "npm publish --access public"
},
"devDependencies": {
"@eslint/js": "^9.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"watch:test": "jest --watch",
"test": "jest --coverage",
"test:update-snapshots": "pnpm test -u",
"dist": "cross-env-shell NODE_ENV=production \"pnpm clean && pnpm lint && pnpm test && pnpm build\""
"dist": "cross-env-shell NODE_ENV=production \"pnpm clean && pnpm lint && pnpm test && pnpm build\"",
"publish-npm": "npm publish --access public"
},
"devDependencies": {
"@eslint/js": "^9.0.0",
Expand Down
7 changes: 0 additions & 7 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
"author": "Quatico Solutions AG",
"license": "MIT",
"private": true,
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"LICENSE",
"README.md",
"lib"
],
"scripts": {
"clean": "rimraf lib dist bin coverage",
"lint": "eslint \"{src,test}/**/*.ts\" --color",
Expand Down
3 changes: 2 additions & 1 deletion packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"watch": "tsc --watch",
"watch:test": "jest --watch",
"test": "jest --coverage",
"dist": "pnpm clean && pnpm lint && pnpm test && cross-env-shell NODE_ENV=production \"pnpm build\""
"dist": "pnpm clean && pnpm lint && pnpm test && cross-env-shell NODE_ENV=production \"pnpm build\"",
"publish-npm": "npm publish --access public"
},
"dependencies": {
"@quatico/websmith-api": "workspace:^",
Expand Down

0 comments on commit 2bad70b

Please sign in to comment.