-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (29 loc) · 973 Bytes
/
ci.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
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- run: yarn install
- run: yarn build
- run: yarn test
# Disabled due to error:
# ```
# ✖ EINVALIDBRANCH A branch is invalid in the `branches` configuration.
# Each branch in the branches configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches) must be either a string, a regexp or an object with a name property.
# Your configuration for the problematic branch is ``.
# ```
# - run: |
# yarn release --debug --dry-run --no-ci --branches main,${{ env.GITHUB_HEAD_REF }}
# env:
# GH_TOKEN: ${{ secrets.GH_PAT }}
# YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}