Skip to content

Commit 24b22a0

Browse files
committed
feat: Updated test name. Added fix for pnpm
1 parent 5aded91 commit 24b22a0

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/run-all-tests-cron-linux.yaml renamed to .github/workflows/run-all-tests-linux.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Test all cron (Linux)
4+
name: Test all (Linux)
55

66
on:
77
# push:
8-
pull_request:
9-
branches:
10-
- release
118
schedule:
129
- cron: '0 0 * * *' # Every day at midnight UTC
1310
workflow_dispatch:

.github/workflows/run-all-tests-cron-macos.yaml renamed to .github/workflows/run-all-tests-macos.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Test all cron (MacOS)
4+
name: Test all (MacOS)
55

66
on:
7-
# push:
8-
pull_request:
9-
branches:
10-
- release
117
schedule:
128
- cron: '0 0 * * *' # Every day at midnight UTC
139
workflow_dispatch:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "default",
3-
"version": "1.1.0-beta.17",
3+
"version": "1.1.0-beta.18",
44
"description": "Default plugin for Codify - provides 50+ declarative resources for managing development tools and system configuration across macOS and Linux",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/javascript/pnpm/pnpm-global-env-stateful-parameter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export class PnpmGlobalEnvStatefulParameter extends StatefulParameter<PnpmConfig
2626

2727
async add(valueToAdd: string): Promise<void> {
2828
const $ = getPty();
29-
await $.spawn(`pnpm env use --global ${valueToAdd}`, { interactive: true });
29+
await $.spawn(`pnpm runtime set node -g ${valueToAdd}`, { interactive: true });
3030
}
3131

3232
async modify(newValue: string): Promise<void> {
3333
const $ = getPty();
34-
await $.spawn(`pnpm env use --global ${newValue}`, { interactive: true })
34+
await $.spawn(`pnpm runtime set node -g ${newValue}`, { interactive: true })
3535
}
3636

3737
async remove(): Promise<void> {

0 commit comments

Comments
 (0)