-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1.01 KB
/
ci.yaml
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
name: CI Build and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: 'Setting up node'
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run build --workspaces --if-present
- run: npm run test:unit --workspaces --if-present
- run: npm run test:integration --workspaces --if-present
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd packages/rollup-plugin-module-federation && npx semantic-release
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: packages/examples/project-a/playwright-report/
retention-days: 30