Skip to content

Merge pull request #19 from LexBorisoff/dev #8

Merge pull request #19 from LexBorisoff/dev

Merge pull request #19 from LexBorisoff/dev #8

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm clean-install
- run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
sync-dev:
name: Sync dev
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout dev
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Merge main into dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git merge origin/main
git push origin dev