Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: windows build #872

Merged
merged 8 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ runs:
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'

- name: Setup yarn
- name: Setup yarn (Unix)
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
run: chmod +x ${{ github.workspace }}/yarn.sh && ${{ github.workspace }}/yarn.sh
shell: bash
env:
NPM_AUTH_TOKEN: ${{ inputs.npm-auth-token }}

- name: Setup yarn (Windows)
if: ${{ runner.os == 'Windows' }}
run: powershell -Command Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process; ${{ github.workspace }}/yarn.ps1
shell: pwsh
env:
NPM_AUTH_TOKEN: ${{ inputs.npm-auth-token }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prepare": "is-ci || husky install",
"update:sdk": "yarn up @plentymarkets/shop-api",
"setup:unix": "chmod +x yarn.sh && ./yarn.sh && yarn build",
"setup:windows": "powershell -Command \"Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process; ./yarn.ps1\" && yarn build",
"setup:windows": "powershell -Command Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process; ./yarn.ps1 && yarn build",
"turbo:disable-telemetry": "turbo telemetry disable",
"build": "yarn turbo:disable-telemetry && turbo run build",
"build:analyze": "yarn turbo:disable-telemetry && turbo run build:analyze",
Expand Down
2 changes: 1 addition & 1 deletion yarn.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ yarn set version stable
yarn set version 4.5.3 --yarn-path
yarn config set nodeLinker node-modules
yarn config set npmScopes.plentymarkets.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.plentymarkets.npmAlwaysAuth $true
yarn config set npmScopes.plentymarkets.npmAlwaysAuth true

if ($env:GITHUB_ACTIONS) {
if (-not $env:NPM_AUTH_TOKEN) {
Expand Down
Loading