-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.38 KB
/
main_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
name: "Release main"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Node.js (20.x)
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
- name: Prepare NPM Registry identity
uses: ohoareau/actions/npmrc-scope-authtoken-add@master
with:
scope: genstackio
token: ${{secrets.NPM_TOKEN}}
registry: registry.npmjs.org
- name: Install
shell: 'script -q -e -c "bash {0}"'
run: make install
env: { FORCE_COLOR: 3, CI: true }
- name: Test
shell: 'script -q -e -c "bash {0}"'
run: make test
env: { FORCE_COLOR: 3, CI: true }
- name: Lint
shell: 'script -q -e -c "bash {0}"'
run: make lint
env: { FORCE_COLOR: 3, CI: true }
- name: Format (check only)
shell: 'script -q -e -c "bash {0}"'
run: make format-check
env: { FORCE_COLOR: 3, CI: true }
- name: Build
shell: 'script -q -e -c "bash {0}"'
run: make build
env: { FORCE_COLOR: 3, CI: true }
- name: Publish (only)
shell: 'script -q -e -c "bash {0}"'
run: make publish-only
env: { FORCE_COLOR: 3, CI: true, GITHUB_TOKEN: '${{secrets.CUSTOM_GITHUB_TOKEN}}' }