Skip to content

chore: workflow

chore: workflow #64

Workflow file for this run

name: Development
on:
pull_request:
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- main
- alpha
- beta
- next
- next-major
types: [opened, synchronize, reopened]
jobs:
Test-Release:
name: 🚨 Test Release 🚨
if: ${{ !contains(github.head_ref, 'all-contributors') }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [18]
os: [ubuntu-latest]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: βŽ” Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: πŸ“₯ Install deps
run: npm ci
- name: πŸ— Build
run: npm run build --if-present
- name: 🚨 Format
run: npm run format
- name: πŸš€ Release Dry Run
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
dry_run: true
ci: false
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
branches: |
[
'main',
'next',
'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 }}