File tree Expand file tree Collapse file tree 8 files changed +42
-38
lines changed Expand file tree Collapse file tree 8 files changed +42
-38
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,3 @@ indent_style = space
13
13
[* .{mjs,js,ts} ]
14
14
indent_size = 4
15
15
max_line_length = 100
16
-
Original file line number Diff line number Diff line change 1
- name : Setup pnpm
1
+ name : Setup
2
2
description : Setup the environment for the project
3
3
4
+ inputs :
5
+ node-version :
6
+ description : Node.js version
7
+ default : ' 22'
8
+ required : false
9
+ node-registry :
10
+ description : Node.js package registry to set up for auth
11
+ required : false
12
+
4
13
runs :
5
14
using : composite
6
15
steps :
16
+ - name : Install Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : ${{ inputs.node-version }}
20
+ registry-url : ${{ inputs.node-registry }}
21
+
7
22
- name : Install pnpm
8
23
uses : pnpm/action-setup@v4
9
24
19
34
key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
20
35
restore-keys : |
21
36
${{ runner.os }}-pnpm-store-
37
+
38
+ - name : Install dependencies
39
+ shell : bash
40
+ run : pnpm install
Original file line number Diff line number Diff line change @@ -18,18 +18,13 @@ jobs:
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Checkout repository
21
- uses : actions/checkout@v4
21
+ uses : actions/checkout@v5
22
22
23
- - name : Setup Node.js
24
- uses : actions/setup-node@v3
25
- with :
26
- node-version : 20
23
+ - name : Setup
24
+ uses : ./.github/actions/setup
27
25
28
- - name : Setup pnpm
29
- uses : ./.github/actions/setup-pnpm
30
-
31
- - name : Install dependencies
32
- run : pnpm install && pnpm add --global concurrently
26
+ - name : Install concurrently 🐶🥣
27
+ run : pnpm add --global concurrently
33
28
34
29
- name : Lint & Format
35
30
run : concurrently --prefix none --group "pnpm:lint" "pnpm:format"
Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' v*'
7
7
8
- permissions :
9
- contents : write
10
-
11
8
jobs :
12
9
gh-release :
13
10
name : Create GitHub Release
14
11
runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
15
14
steps :
16
15
- name : Checkout repository
17
- uses : actions/checkout@v4
16
+ uses : actions/checkout@v5
18
17
19
18
- name : Create release
20
19
env :
@@ -24,23 +23,20 @@ jobs:
24
23
publish-npm :
25
24
name : Publish to NPM
26
25
runs-on : ubuntu-latest
26
+ permissions :
27
+ contents : read
28
+ id-token : write
27
29
steps :
28
30
- name : Checkout repository
29
- uses : actions/checkout@v4
31
+ uses : actions/checkout@v5
30
32
31
- - name : Setup Node.js
32
- uses : actions/setup-node@v3
33
+ - name : Setup
34
+ uses : ./.github/ actions/setup
33
35
with :
34
- node-version : 20
35
- registry-url : https://registry.npmjs.org
36
-
37
- - name : Setup pnpm
38
- uses : ./.github/actions/setup-pnpm
39
-
40
- - name : Install dependencies
41
- run : pnpm install
36
+ node-registry : https://registry.npmjs.org
42
37
43
38
- name : Publish to NPM
44
39
env :
45
40
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
41
+ NPM_CONFIG_PROVENANCE : true
46
42
run : pnpm publish --no-git-checks
Original file line number Diff line number Diff line change @@ -42,18 +42,15 @@ jobs:
42
42
version : macOS-latest
43
43
steps :
44
44
- name : Checkout repository
45
- uses : actions/checkout@v4
45
+ uses : actions/checkout@v5
46
46
47
- - name : Setup Node.js
48
- uses : actions/setup-node@v3
47
+ - name : Setup
48
+ uses : ./.github/ actions/setup
49
49
with :
50
50
node-version : ${{ matrix.node }}
51
51
52
- - name : Setup pnpm
53
- uses : ./.github/actions/setup-pnpm
54
-
55
- - name : Install dependencies
56
- run : pnpm install && pnpm add --global concurrently
52
+ - name : Install concurrently 🐶🥣
53
+ run : pnpm add --global concurrently
57
54
58
55
- name : Build & Test
59
56
run : concurrently --prefix none --group "pnpm:build" "pnpm:test --coverage" "pnpm:test:smoke"
Original file line number Diff line number Diff line change 4
4
5
5
import { concurrently } from './dist/src/index.js' ;
6
6
7
- // NOTE: the star reexport doesn't work in Node <12.20, <14.13 and <15.
8
7
export * from './dist/src/index.js' ;
9
8
10
9
export default concurrently ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
"concurrently" : " workspace:*"
4
4
},
5
5
"scripts" : {
6
- "test" : " pnpm --prefix .. test -- --selectProjects smoke"
6
+ "test" : " pnpm --workspace-root test: smoke"
7
7
}
8
8
}
You can’t perform that action at this time.
0 commit comments