Skip to content

Commit 1441bf1

Browse files
authored
Switch to pnpm (withfig#2222)
1 parent 8f57e5d commit 1441bf1

File tree

14 files changed

+5100
-8261
lines changed

14 files changed

+5100
-8261
lines changed

.gitattributes

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: Build and release specs
33
on:
44
push:
55
paths:
6-
- 'src/**/*.ts'
7-
- '!package.json'
6+
- "src/**/*.ts"
7+
- "!package.json"
88
branches:
99
# We only want to create a new release when
1010
# - a pr is merged to master
1111
# - we push into master
12-
- 'master'
12+
- "master"
1313
workflow_dispatch:
1414

1515
jobs:
@@ -20,12 +20,17 @@ jobs:
2020
uses: actions/checkout@v4
2121
with:
2222
token: ${{ secrets.FIG_BOT_TOKEN }}
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version-file: package.json
2326
# Install all dependencies
27+
- name: Install pnpm
28+
uses: pnpm/[email protected]
2429
- name: install
25-
run: yarn install --no-immutable
30+
run: pnpm install --frozen-lockfile
2631
# Transpile all specs from ts to js
2732
- name: build
28-
run: yarn build
33+
run: pnpm build
2934
# Zip the transpiled files into the specs.zip file
3035
- name: bundle files
3136
run: |
@@ -49,12 +54,12 @@ jobs:
4954
tag_name: ${{ steps.tag_version.outputs.new_tag }}
5055
env:
5156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
- name: 'Automated Version Bump'
53-
uses: 'phips28/gh-action-bump-version@master'
57+
- name: "Automated Version Bump"
58+
uses: "phips28/gh-action-bump-version@master"
5459
env:
5560
GITHUB_TOKEN: ${{ secrets.FIG_BOT_TOKEN }}
5661
with:
57-
skip-tag: 'true'
62+
skip-tag: "true"
5863
- name: Publish to npm
5964
uses: JS-DevTools/npm-publish@v3
6065
with:

.github/workflows/danger.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ jobs:
88
- uses: actions/checkout@v4
99
- uses: actions/setup-node@v4
1010
with:
11-
node-version: 18.x
12-
- run: yarn install --no-immutable
13-
- run: yarn danger ci
11+
node-version-file: package.json
12+
- name: Install pnpm
13+
uses: pnpm/[email protected]
14+
- run: pnpm install --frozen-lockfile
15+
- run: pnpm danger ci
1416
env:
1517
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
16-
- run: yarn danger ci -d ./dangerfile-greeting.ts
18+
- run: pnpm danger ci -d ./dangerfile-greeting.ts
1719
env:
1820
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}

.github/workflows/lint.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 18.x
14-
- run: yarn install --no-immutable
15-
- run: yarn lint
13+
node-version-file: package.json
14+
- name: Install pnpm
15+
uses: pnpm/[email protected]
16+
- run: pnpm install --frozen-lockfile
17+
- run: pnpm lint

.github/workflows/typecheck.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 14.x
15-
- run: yarn install --no-immutable
16-
- run: yarn test
14+
node-version-file: package.json
15+
- name: Install pnpm
16+
uses: pnpm/[email protected]
17+
- run: pnpm install --frozen-lockfile
18+
- run: pnpm test

.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@ npm-debug.log
1010
.vscode
1111
specs
1212

13-
# we use yarn.lock for dependency management
13+
# we use pnpm-lock.yaml for dependency management
1414
package-lock.json
15-
pnpm-lock.yaml
16-
17-
# https://next.yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
15+
yarn.lock
1816
.pnp.*
1917
.yarn/*
20-
!.yarn/patches
21-
!.yarn/plugins
22-
!.yarn/releases
23-
!.yarn/sdks
24-
!.yarn/versions

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 20

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
"editor.codeActionsOnSave": {
44
"source.fixAll.eslint": "explicit"
55
},
6-
"editor.formatOnSave": true,
7-
"deno.enablePaths": ["migrate.ts"],
8-
"deno.enable": true
6+
"editor.formatOnSave": true
97
}

.yarn/releases/yarn-3.5.1.cjs

Lines changed: 0 additions & 873 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)