Skip to content

Commit

Permalink
ci(dist): release instead of checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Dec 6, 2024
1 parent c08f9d9 commit 3d61e83
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/check-dist.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release dist/

on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
check-dist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- run: yarn install --frozen-lockfile

- run: yarn release

- run: |
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff --staged --quiet || git commit -m 'build(dist): package release'
git push

0 comments on commit 3d61e83

Please sign in to comment.