chore(deps): bump @eslint/plugin-kit from 0.2.2 to 0.2.3 #3839
Workflow file for this run
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: ci | |
on: [pull_request, push] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Lint | |
run: | | |
pnpm run pretty:check | |
pnpm run eslint | |
- name: Build | |
run: pnpm run build | |
- name: Test | |
run: pnpm run test-with-coverage -- --testTimeout=10000 | |
- name: Publish new release | |
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' | |
run: | | |
pnpm publish --no-git-checks | |
PACKAGE=$(node -p "require('./package.json').name") | |
VERSION=$(node -p "require('./package.json').version") | |
until [ $(pnpm view $PACKAGE --json | jq --arg version "$VERSION" -r '.versions[] | select (. == $version)') ]; | |
do | |
echo "Waiting for publish to complete" | |
sleep 5s | |
done | |
curl -XPOST -H "Authorization: token ${{ secrets.GH_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/koenkk/zigbee2mqtt/dispatches --data "{\"event_type\": \"update_dep\", \"client_payload\": { \"version\": \"$VERSION\", \"package\": \"$PACKAGE\"}}" | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN }} |