Skip to content

Commit cab8917

Browse files
restfulheadPatrick Ruhkopf
authored andcommitted
chore: release notes
1 parent cb8c3c0 commit cab8917

File tree

4 files changed

+1794
-30
lines changed

4 files changed

+1794
-30
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build pull request
33
on:
44
pull_request:
55
branches: [ main ]
6+
push:
7+
branches: [ main ]
68

79
jobs:
810
build:
@@ -19,6 +21,7 @@ jobs:
1921
- name: Setting up ${{ matrix.node-version }}
2022
uses: actions/setup-node@v3
2123
with:
24+
cache: 'npm'
2225
node-version: ${{ matrix.node-version }}
2326

2427
- name: Install dependencies
@@ -32,3 +35,6 @@ jobs:
3235

3336
- name: Test
3437
run: npm test
38+
39+
- name: Release preview
40+
run: npx auto shipit --dry-run
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
name: Build pull request
1+
name: Publish
22

33
on:
4-
pull_request:
5-
branches: [ main ]
4+
workflow_dispatch:
65

76
jobs:
87
build:
98

109
runs-on: ubuntu-latest
1110

12-
strategy:
13-
matrix:
14-
node-version: [18.x]
15-
1611
steps:
1712
- uses: actions/checkout@v3
1813

19-
- name: Setting up ${{ matrix.node-version }}
14+
- name: Setting up Node.js
2015
uses: actions/setup-node@v3
2116
with:
22-
node-version: ${{ matrix.node-version }}
17+
cache: 'npm'
18+
node-version: 18
2319

2420
- name: Install dependencies
2521
run: npm ci
2622

2723
- name: Build
2824
run: npm run build:prod
2925

26+
- name: Publish
27+
run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)