Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "07:00"
timezone: Etc/UTC
commit-message:
prefix: ci
include: scope
labels:
- dependencies
- github-actions
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Set up Vite+
uses: voidzero-dev/setup-vp@v1
uses: voidzero-dev/setup-vp@9446e853b27985e00fb1b21193be026fc09198db # v1
with:
node-version-file: ".node-version"
cache: true
Expand All @@ -42,32 +42,36 @@ jobs:
working-directory: apps/example
run: vp run verify

# Publishes the library to npm on push to `main` (after `verify` passes).
# Requires the `NPM_TOKEN` repository secret. Skip with `[skip ci]` in the
# release commit; config: `packages/react-json-logic/.releaserc.json`.
# Uses `NPM_TOKEN` from the `release` GitHub Environment.
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[skip ci]')
name: Release react-json-logic
needs:
- verify
runs-on: ubuntu-latest
timeout-minutes: 15
environment:
name: release
deployment: false
concurrency:
group: release-${{ github.repository }}-main
cancel-in-progress: false
permissions:
contents: write
issues: write
pull-requests: write

steps:
- name: Check out repository
uses: actions/checkout@v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Set up Vite+
uses: voidzero-dev/setup-vp@v1
uses: voidzero-dev/setup-vp@9446e853b27985e00fb1b21193be026fc09198db # v1
with:
node-version-file: ".node-version"
cache: true
cache: false

- name: Install dependencies
run: vp install
Expand All @@ -77,7 +81,7 @@ jobs:
run: vp pack

- name: Release package
uses: cycjimmy/semantic-release-action@v6
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6
with:
working_directory: packages/react-json-logic
extra_plugins: |
Expand All @@ -90,7 +94,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: glitch418x
GIT_AUTHOR_EMAIL: 189487110+glitch418x@users.noreply.github.com
GIT_COMMITTER_NAME: glitch418x
GIT_COMMITTER_EMAIL: 189487110+glitch418x@users.noreply.github.com
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com