2222 - alpha
2323 - beta
2424
25- concurrency :
26- group : ${{ github.head_ref || github.ref_name }}
27- cancel-in-progress : true
28-
2925jobs :
30- build :
31-
32- runs-on : ubuntu-latest
33-
34- strategy :
35- matrix :
36- node-version : [16.x, 18.x, 20.x]
37-
38- steps :
39- - uses : actions/checkout@v4
40- - uses : pnpm/action-setup@v2
41- with :
42- version : 7
43- - name : Use Node.js ${{ matrix.node-version }}
44- uses : actions/setup-node@v4
45- with :
46- node-version : ${{ matrix.node-version }}
47- cache : ' pnpm'
48- - run : pnpm install --frozen-lockfile --prefer-offline --reporter=append-only
49- - run : pnpm run lint
50- - run : pnpm run build
51- - run : pnpm test
52-
53- publish :
54-
55- if : github.ref_name == 'main'
56-
57- needs : build
58-
59- runs-on : ubuntu-latest
60-
61- steps :
62- - uses : actions/checkout@v4
63- - uses : pnpm/action-setup@v2
64- with :
65- version : 7
66- - name : Use Node.js
67- uses : actions/setup-node@v4
68- with :
69- node-version : ' 18.x'
70- registry-url : ' https://registry.npmjs.org'
71- scope : ' @rollup-extras'
72- cache : ' pnpm'
73- - run : pnpm install --frozen-lockfile --prefer-offline --reporter=append-only
74- - run : pnpm run build
75- - name : create and publish versions
76- uses : changesets/action@v1
77- with :
78- commit : " chore: update versions"
79- title : " chore: release"
80- publish : " pnpm run ci:publish"
81- env :
82- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
26+ pipeline :
27+ with :
28+ scope : ' @rollup-extras'
29+ uses : kshutkin/pipeline/.github/workflows/main.yml@main
30+ secrets : inherit
0 commit comments