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
1313[* .{mjs,js,ts} ]
1414indent_size = 4
1515max_line_length = 100
16-
Original file line number Diff line number Diff line change 1- name : Setup pnpm
1+ name : Setup
22description : Setup the environment for the project
33
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+
413runs :
514 using : composite
615 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+
722 - name : Install pnpm
823 uses : pnpm/action-setup@v4
924
1934 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
2035 restore-keys : |
2136 ${{ 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:
1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Checkout repository
21- uses : actions/checkout@v4
21+ uses : actions/checkout@v5
2222
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
2725
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
3328
3429 - name : Lint & Format
3530 run : concurrently --prefix none --group "pnpm:lint" "pnpm:format"
Original file line number Diff line number Diff line change 55 tags :
66 - ' v*'
77
8- permissions :
9- contents : write
10-
118jobs :
129 gh-release :
1310 name : Create GitHub Release
1411 runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
1514 steps :
1615 - name : Checkout repository
17- uses : actions/checkout@v4
16+ uses : actions/checkout@v5
1817
1918 - name : Create release
2019 env :
@@ -24,23 +23,20 @@ jobs:
2423 publish-npm :
2524 name : Publish to NPM
2625 runs-on : ubuntu-latest
26+ permissions :
27+ contents : read
28+ id-token : write
2729 steps :
2830 - name : Checkout repository
29- uses : actions/checkout@v4
31+ uses : actions/checkout@v5
3032
31- - name : Setup Node.js
32- uses : actions/setup-node@v3
33+ - name : Setup
34+ uses : ./.github/ actions/setup
3335 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
4237
4338 - name : Publish to NPM
4439 env :
4540 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
41+ NPM_CONFIG_PROVENANCE : true
4642 run : pnpm publish --no-git-checks
Original file line number Diff line number Diff line change @@ -42,18 +42,15 @@ jobs:
4242 version : macOS-latest
4343 steps :
4444 - name : Checkout repository
45- uses : actions/checkout@v4
45+ uses : actions/checkout@v5
4646
47- - name : Setup Node.js
48- uses : actions/setup-node@v3
47+ - name : Setup
48+ uses : ./.github/ actions/setup
4949 with :
5050 node-version : ${{ matrix.node }}
5151
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
5754
5855 - name : Build & Test
5956 run : concurrently --prefix none --group "pnpm:build" "pnpm:test --coverage" "pnpm:test:smoke"
Original file line number Diff line number Diff line change 44
55import { concurrently } from './dist/src/index.js' ;
66
7- // NOTE: the star reexport doesn't work in Node <12.20, <14.13 and <15.
87export * from './dist/src/index.js' ;
98
109export default concurrently ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 "concurrently" : " workspace:*"
44 },
55 "scripts" : {
6- "test" : " pnpm --prefix .. test -- --selectProjects smoke"
6+ "test" : " pnpm --workspace-root test: smoke"
77 }
88}
You can’t perform that action at this time.
0 commit comments