File tree Expand file tree Collapse file tree 11 files changed +3703
-3683
lines changed Expand file tree Collapse file tree 11 files changed +3703
-3683
lines changed Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/devcontainers/javascript-node:20
2
+
3
+ RUN corepack enable
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " Node.js" ,
3
+ "build" : {
4
+ "dockerfile" : " Dockerfile"
5
+ },
6
+ "customizations" : {
7
+ "vscode" : {
8
+ "extensions" : [" esbenp.prettier-vscode" , " dbaeumer.vscode-eslint" ]
9
+ }
10
+ },
11
+ "onCreateCommand" : " yarn install" ,
12
+ "remoteUser" : " node"
13
+ }
Original file line number Diff line number Diff line change 5
5
runs-on : ubuntu-latest
6
6
steps :
7
7
- uses : actions/checkout@v4
8
+ # waiting on: https://github.com/actions/setup-node/issues/531
9
+ - run : corepack enable
8
10
- uses : actions/setup-node@v4
9
11
with :
10
12
node-version : 20
11
- cache : ' npm '
13
+ cache : ' yarn '
12
14
- name : run eslint
13
15
run : |
14
- npm ci
15
- npm run build
16
- npm run typecheck
17
- npm run lint:check
18
- npm run format:check
19
- npm run sync
20
- env :
21
- CI : true
16
+ yarn install --immutable
17
+ yarn build
18
+ yarn typecheck
19
+ yarn lint:check
20
+ yarn format:check
21
+ yarn sync
Original file line number Diff line number Diff line change @@ -36,12 +36,15 @@ jobs:
36
36
- uses : actions/checkout@v4
37
37
with :
38
38
fetch-depth : 0
39
+ # waiting on: https://github.com/actions/setup-node/issues/531
40
+ - run : corepack enable
39
41
- uses : actions/setup-node@v4
40
42
with :
41
43
node-version : 20
42
44
registry-url : ' https://registry.npmjs.org'
43
- cache : ' npm '
44
- - run : npm ci
45
+ cache : ' yarn '
46
+ - run : yarn install --immutable
45
47
- env :
46
48
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
49
+ # yarn doesn't have an equivalent --provenance
47
50
run : npm publish --provenance --access public
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ jobs:
12
12
- uses : actions/checkout@v4
13
13
with :
14
14
ssh-key : ${{ secrets.ACTION_DEPLOY_KEY }}
15
+ # waiting on: https://github.com/actions/setup-node/issues/531
16
+ - run : corepack enable
15
17
- uses : actions/setup-node@v4
16
18
with :
17
19
node-version : 20
18
- cache : ' npm '
19
- - run : npm ci
20
- - run : npm run sync
20
+ cache : ' yarn '
21
+ - run : yarn install --immutable
22
+ - run : yarn sync
21
23
- name : git config
22
24
run : |
23
25
git config --local user.name "GitHub Actions"
Original file line number Diff line number Diff line change 5
5
runs-on : ubuntu-latest
6
6
steps :
7
7
- uses : actions/checkout@v4
8
+ # waiting on: https://github.com/actions/setup-node/issues/531
9
+ - run : corepack enable
8
10
- uses : actions/setup-node@v4
9
11
with :
10
12
node-version : 20
11
- cache : ' npm '
13
+ cache : ' yarn '
12
14
- name : Install deps, build, then clear deps
13
15
run : |
14
- npm ci
15
- npm run build
16
+ yarn install --immutable
17
+ yarn build
16
18
rm -rf node_modules
17
19
- name : Test on Node 20
18
20
run : |
19
21
node -v
20
- npm run test
22
+ node bin/ test.js
21
23
# Not using a matrix here since it's simpler
22
24
# to just duplicate it and not spawn new instances
23
25
- uses : actions/setup-node@v4
26
28
- name : Test on Node 18
27
29
run : |
28
30
node -v
29
- npm run test
31
+ node bin/ test.js
Original file line number Diff line number Diff line change @@ -54,8 +54,15 @@ typings/
54
54
# Output of 'npm pack'
55
55
* .tgz
56
56
57
- # Yarn Integrity file
57
+ # Yarn
58
58
.yarn-integrity
59
+ .pnp. *
60
+ .yarn /*
61
+ ! .yarn /patches
62
+ ! .yarn /plugins
63
+ ! .yarn /releases
64
+ ! .yarn /sdks
65
+ ! .yarn /versions
59
66
60
67
# dotenv environment variables file
61
68
.env
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
You can’t perform that action at this time.
0 commit comments