-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.15 KB
/
push.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
# This file was automatically generated by github-actions-wac.
# DO NOT MODIFY IT BY HAND. Instead, modify the source *.wac.ts file(s)
# and run "github-actions-wac build" (or "ghawac build") to regenerate this file.
# For more information, run "github-actions-wac --help".
name: Push to main branch
'on': push
env:
NODE_OPTIONS: '--max_old_space_size=4096'
jobs:
buildTestRelease:
name: Build, test, release
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn --immutable
- name: Build
run: yarn build
- name: Test
run: echo 'yarn test'
- name: Prepare for release
run: yarn prepare-dist-for-release
- name: Release
uses: cycjimmy/semantic-release-action@v3
with:
working_directory: ./dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}