Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

docs: Archive repository #202

docs: Archive repository

docs: Archive repository #202

Workflow file for this run

name: Release
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
release:
runs-on: ubuntu-latest
needs: test
if: github.ref_name == 'main'
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
extra_plugins: |
conventional-changelog-conventionalcommits@latest
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Push updates to branch for major version
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}