Skip to content

Commit

Permalink
fix: publish workflows
Browse files Browse the repository at this point in the history
 - Closes #106
 - Re-Introduced publish to Github packages
  • Loading branch information
mauroerta committed Nov 4, 2021
1 parent 6286c52 commit cb79123
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ jobs:
git update-index --assume-unchanged $i
done
git update-index --assume-unchanged lerna.json
- run: npm run reset
# Publish to npm
- run: npx lerna publish from-package --yes --no-verify-access
- run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v2
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@morfeo'
# Publish to GitHub Packages
- run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test": "jest --updateSnapshot",
"test:watch": "jest --watch --updateSnapshot",
"test:coverage": "jest --verbose --coverage --updateSnapshot",
"publish": "npm run reset && npx lerna publish from-package --yes",
"publish": "npm run reset && npx lerna publish from-package --yes --no-verify-access",
"version": "npx lerna version patch --no-push --no-git-tag-version --conventional-commits",
"version:minor": "npx lerna version minor --no-push --no-git-tag-version --conventional-commits",
"postversion": "ts-node scripts/version.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*-debug.log
*-error.log
oclif.manifest.json
/.nyc_output
/dist
/lib
Expand Down
7 changes: 3 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"morfeo",
"design",
"system",
"morfeo",
"builder",
"morfeo-js"
],
Expand All @@ -61,9 +60,9 @@
]
},
"scripts": {
"postpack": "rm -f oclif.manifest.json",
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
"version": "oclif-dev readme && git add README.md"
"build": "rm -rf lib && tsc -b",
"prepack": "npm run build && oclif-dev manifest && oclif-dev readme",
"version": "oclif-dev readme"
},
"types": "lib/index.d.ts",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"composite": false,
"outDir": "lib",
"rootDir": "src",
"module": "commonjs",
Expand Down

0 comments on commit cb79123

Please sign in to comment.