-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 881 Bytes
/
build.yml
File metadata and controls
39 lines (30 loc) · 881 Bytes
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
name: build
on: [push, pull_request]
env:
FORCE_COLOR: 3
defaults:
run:
working-directory: packages/web-functionality
jobs:
build-web-functionality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# set up correct version of node
- id: nvmrc
run: echo ::set-output name=NODE_VERSION::$(cat ../../.nvmrc)
- uses: actions/setup-node@v6
with: { node-version: '${{ steps.nvmrc.outputs.NODE_VERSION }}' }
- run: yarn
# checks
- run: yarn run prettier-check
- run: yarn run eslint
# build
- run: yarn run build
# publish
- name: release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release