Skip to content

chore: workflow

chore: workflow #54

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: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
env:
HUSKY_SKIP_INSTALL: true
- 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/[email protected]
@semantic-release/[email protected]
@semantic-release/[email protected]
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 }}