-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 965 Bytes
/
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
name: release
on:
push:
branches: [master, next, act]
jobs:
release-job:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
steps:
- { uses: actions/checkout@v2, with: { persist-credentials: true } }
- { uses: actions/setup-node@v1, with: { node-version: 14 } }
# Cache for npm/npx in ~/.npm
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-v1-${{ runner.os }}
# Normal cache for yarn in ./node_modules
- uses: actions/cache@v2
with:
path: ./node_modules
key: deps-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: yarn
run: yarn --frozen-lockfile
- name: test
run: |
yarn test
- name: release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx @naturalcycles/semantic-release