Skip to content

chore: version packages #198

chore: version packages

chore: version packages #198

Workflow file for this run

name: version
on:
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- '**.md'
workflow_dispatch:
env:
COMMIT_USER: Hiro DevOps
COMMIT_EMAIL: [email protected]
jobs:
pre-run:
uses: ./.github/workflows/pre-run.yml
secrets: inherit
version:
runs-on: ubuntu-latest
needs: pre-run
if: "needs.pre-run.outputs.is-not-fork == 'true' && !contains(github.event.head_commit.message, 'chore: version packages')"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm install -g npm@latest
- run: npm ci
# workaround for changesets/action to allow not using changesets
# todo: add `force` option on fork to allow removing this workaround
- run: |
npx changeset init
npx changeset --empty
echo '.changeset/' >> .git/info/exclude
- run: git tag -d $(git tag | grep 'beta')
- name: Create Release Pull Request
uses: janniks/changesets-action@main
with:
title: 'chore: version packages'
commit: 'chore: version packages'
version: 'npm run ci:version'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}