-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.45 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy packages
on:
push:
branches: ['master']
jobs:
validation:
name: Validation and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/save-turbo-cache
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/install-npm-deps
- name: Build package
run: npm run build -- --force
- name: Linting
run: npm run lint
deploy-extension:
needs: validation
name: Deploy @msw-devtools/extension
uses: ./.github/workflows/deploy-extension.yml
deploy-demo:
needs: validation
name: Deploy @msw-devtools/demo
uses: ./.github/workflows/deploy-demo.yml
changesets:
name: Deploy @msw-devtools/connect
needs: validation
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commit
fetch-depth: 0
- uses: ./.github/actions/restore-turbo-cache
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/install-npm-deps
- name: Publish
uses: changesets/action@master
with:
title: "Next release"
publish: npm run publish:connect
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}