build: update dependencies (#1540) #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |