Skip to content

Commit

Permalink
use the "publish" script in package.json to publish the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Aug 31, 2023
1 parent 9a19343 commit 591f6a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
echo "Error: Found changed packages. Please run 'yarn run version' before pushing changes." >&2
exit 1
fi
- name: Install dependencies and build 🔧
- name: Install dependencies 🔧
run: yarn install --frozen-lockfile
- name: Publish package on NPM 📦
run: yarn run lerna publish from-package --yes --dist-tag experimental
run: yarn run publish --dist-tag experimental
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.3",
"license": "MIT",
"scripts": {
"publish": "lerna publish",
"publish": "lerna publish from-package --yes",
"changed": "lerna changed --ignore-changes '**/*.md' '**/test/*' '**/__snapshots__/*' '**/*.test.{ts,tsx,js,jsx}'",
"version": "lerna version --no-push --ignore-changes '**/*.md' '**/test/*' '**/__snapshots__/*' '**/*.test.{ts,tsx,js,jsx}'",
"yalc": "cd packages/macro && yalc publish && cd ../runtime && yalc publish",
Expand Down

0 comments on commit 591f6a3

Please sign in to comment.