Skip to content

Commit

Permalink
Merge pull request #359 from npalm/develop
Browse files Browse the repository at this point in the history
chore: release
  • Loading branch information
npalm authored Mar 2, 2023
2 parents 00b7218 + 0c5419a commit 6755577
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [16, 18]

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --ignore-engines
Expand All @@ -33,12 +37,13 @@ jobs:

- name: Check for modified files
id: changes
if: matrix.node-version == 18
run: |
echo "files=$(git ls-files -m)" >>$GITHUB_OUTPUT
echo "count=$(git ls-files -m | wc -l)" >>$GITHUB_OUTPUT
- uses: actions/[email protected]
if: github.event_name == 'pull_request' && steps.changes.outputs.count != 0
if: github.event_name == 'pull_request' && steps.changes.outputs.count != 0 && matrix.node-version == 18
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -60,14 +65,14 @@ jobs:
body: output
})
- name: Update dist in the repository
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && matrix.node-version == 18
uses: stefanzweifel/[email protected]
with:
commit_message: "chore(ci): Updating dist"
file_pattern: dist/*

- name: Update readme in the repository
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && matrix.node-version == 18
uses: stefanzweifel/[email protected]
with:
commit_message: "chore(ci): Updating README"
Expand All @@ -77,7 +82,7 @@ jobs:
if:
contains('
refs/heads/main
', github.ref)
', github.ref) && matrix.node-version == 18
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release

0 comments on commit 6755577

Please sign in to comment.