-
Notifications
You must be signed in to change notification settings - Fork 7
98 lines (79 loc) · 2.25 KB
/
release.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Release
on:
push:
branches:
- development
# Only one release job at a time.
concurrency:
group: release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSL_PRIVATE }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Commons
uses: ./.github/actions/commons
- name: Configure NPM token
run:
echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >>
~/.npmrc
- name: Add auth token for 127.0.0.1
run: echo "//127.0.0.1:4873/:_authToken=foo" >> ~/.npmrc
- name: Debug npmrc
run: cat ~/.npmrc
- name: Npm version
run: npm -v
- name: Install dependencies
run: pnpm i
- name: Check formatting
run: pnpm test:format
- name: Build packages
run: pnpm build
- name: Run static tests
run: pnpm test:static
- name: Run unit tests
run: pnpm test:unit
- name: Run integration tests
run: pnpm test:integration
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: |
packages/**/playwright-report/**
packages/**/test-results/**
retention-days: 3
- name: Start verdaccio
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm git-registry:with-logs &
- name: Wait a moment
run: sleep 5
- name: Check for git diff
run: git diff --exit-code
- name: Deploy
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: pnpm lerna run deploy --since
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm lerna publish -y
- name: Verdaccio log
run: cat /tmp/verdaccio.log || true
if: always()
- name: Gatsby log
run: cat /tmp/gatsby.log || true
if: always()
- name: Drupal log
run: cat /tmp/drupal.log || true
if: always()