-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (46 loc) · 1.42 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
name: Release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout ⬇️
uses: actions/checkout@v3
with:
# Omlet uses git history for analysis; disable shallow clone
fetch-depth: 0
- name: Setup node 😻
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'yarn'
# Configure NPM to point to Github's package registry.
registry-url: https://npm.pkg.github.com/
scope: '@chanzuckerberg'
- name: Install Dependencies 🧶
run: yarn install --immutable
- name: Type check 📋
run: yarn run types
- name: Run CI Tests ✅
run: yarn run test:ci
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CI: true
- name: Build EDS 🛠️
run: yarn build
# Publish the package on Github's package registry for internal CZI use. You should still
# publish to the npm registry separately from this job.
- name: Publish package to the Github registry
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Omlet 🍳
run: npx omlet analyze
env:
OMLET_TOKEN: ${{ secrets.OMLET_TOKEN }}