-
-
Notifications
You must be signed in to change notification settings - Fork 441
51 lines (42 loc) · 1.26 KB
/
release-test.yml
File metadata and controls
51 lines (42 loc) · 1.26 KB
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
name: release-workflow-test
on:
pull_request:
branches:
- '*'
push:
branches:
- main
- next
permissions:
contents: read
jobs:
release-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies if needed
run: yarn install
- name: Publish with Verdaccio
run: |
git switch -c "pull-request"
npm i -g verdaccio@6.5.2 verdaccio-auth-memory@13.0.0 verdaccio-memory@10.4.3
nohup verdaccio --config .github/verdaccio/config.yaml &>verdaccio.log &
yarn verdaccio:release
- name: Run tests in vite-project-react-babel
run: |
cp ./.github/verdaccio/.yarnrc.yml ./examples/vite-project-react-babel/.yarnrc.yml
cd ./examples/vite-project-react-babel
yarn up "@lingui/*"
yarn messages:extract
yarn test
yarn build
- name: Print Verdaccio Log
if: ${{ failure() }}
run: cat ./verdaccio.log