Skip to content

Commit

Permalink
fix pnpm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregoor committed Nov 6, 2024
1 parent 784f61d commit edbc67a
Show file tree
Hide file tree
Showing 4 changed files with 1,873 additions and 1,574 deletions.
40 changes: 16 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,32 @@ jobs:
name: Types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
run_install: false
- uses: actions/setup-node@v4
with:
version: 7.17.1
run_install: true
node-version: 20
cache: "pnpm"
- run: pnpm install

- run: pnpm types

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache pnpm modules
uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
run_install: false
- uses: actions/setup-node@v4
with:
version: 7.17.1
run_install: true
node-version: 20
cache: "pnpm"
- run: pnpm install

- run: pnpm test
21 changes: 8 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@ jobs:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: 20
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
run_install: false
- uses: actions/setup-node@v4
with:
version: 7.17.1
run_install: true
node-version: 20
cache: "pnpm"
- run: pnpm install

- run: curl https://raw.githubusercontent.com/Gregoor/soy/main/README.md > README.md

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "^5.6.3",
"web-tree-sitter": "^0.24.3"
},
"packageManager": "pnpm@8.10.0",
"packageManager": "pnpm@9.12.3+sha256.24235772cc4ac82a62627cd47f834c72667a2ce87799a846ec4e8e555e2d4b8b",
"main": "./out/node.js",
"categories": [
"Other"
Expand Down
Loading

0 comments on commit edbc67a

Please sign in to comment.