Skip to content

chore: add push branches #12

chore: add push branches

chore: add push branches #12

Workflow file for this run

name: Test Release
on:
pull_request:
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- alpha
- beta
- emails
- dev
- next
- next-major
types: [opened, synchronize, reopened]
push:
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- alpha
- beta
- emails
- dev
- next
- next-major
jobs:
Release:
name: 🚨 Test Release 🚨
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16]
os: [ubuntu-latest]
steps:
- name: βŽ” Setup node
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: πŸ— Build
run: npm run build
- name: 🚨 Test
run: npm run test
- name: πŸš€ Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
dry_run: true
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
@semantic-release/[email protected]
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
'main',
'next',
'emails',
'dev',
'next-major',
{name: 'beta', prerelease: true},
{name: 'alpha', prerelease: true}
]
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}