Skip to content

Commit 05e045e

Browse files
Judahmeekjustin808
authored andcommitted
add yarn prefix to publish, not link
1 parent 6653342 commit 05e045e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
yarn install --no-progress --no-emoji ${{ matrix.dependency-level == 'latest' && '--frozen-lockfile' || '' }}
131131
sudo yarn global add yalc
132132
- name: yalc publish for react-on-rails
133-
run: yalc publish
133+
run: yarn yalc publish
134134
- name: Install Ruby Gems for package
135135
run: |
136136
bundle lock --add-platform 'x86_64-linux'

lib/generators/react_on_rails/dev_tests_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def add_yarn_relative_install_script_in_package_json
5050
package_json = File.join(destination_root, "package.json")
5151
contents = JSON.parse(File.read(package_json))
5252
contents["scripts"] ||= {}
53-
contents["scripts"]["postinstall"] = "yarn yalc link react-on-rails"
53+
contents["scripts"]["postinstall"] = "yalc link react-on-rails"
5454
File.open(package_json, "w+") { |f| f.puts JSON.pretty_generate(contents) }
5555
end
5656
end

0 commit comments

Comments
 (0)