Skip to content

Commit

Permalink
ci: pin pnpm version, upgrade CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 31, 2023
1 parent f583c8f commit e6d5417
Show file tree
Hide file tree
Showing 6 changed files with 1,337 additions and 1,306 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*

- name: pnpm setup
uses: pnpm/action-setup@v2.2.4
with:
version: 7.17.0
run_install: true

- name: cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
uses: pnpm/action-setup@v2

- name: Install dependencies
run: pnpm install
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Deploy npm modules
on:
on: {}
# push:
# branches: [main]

Expand All @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*

- name: cache pnpm modules
uses: actions/cache@v3
Expand All @@ -22,10 +22,7 @@ jobs:
${{ runner.os }}-
- name: pnpm setup
uses: pnpm/action-setup@v2.2.4
with:
version: 7.17.0
run_install: true
uses: pnpm/action-setup@v2

- run: pnpm run update
- run: pnpm run build
Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/update-grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'

- name: cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
node-version: lts/*

- name: pnpm setup
uses: pnpm/action-setup@v2.1.0
with:
version: 6.31.0
run_install: true
uses: pnpm/action-setup@v2

- run: pnpm run update:grammars

Expand Down
19 changes: 4 additions & 15 deletions .github/workflows/update-themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'

- name: cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
node-version: lts/*

- name: pnpm setup
uses: pnpm/action-setup@v2.1.0
with:
version: 6.31.0
run_install: true
uses: pnpm/action-setup@v2

- run: pnpm run update:themes

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"private": true,
"packageManager": "pnpm@8.6.1",
"scripts": {
"build": "pnpm -r build",
"dev": "pnpm -r --parallel watch",
Expand Down
Loading

0 comments on commit e6d5417

Please sign in to comment.