Skip to content

feat: support stylelint 17 #12

feat: support stylelint 17

feat: support stylelint 17 #12

name: Test and Release
on:
push:
branches:
- main
pull_request:
jobs:
test-and-release:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
# because npm 10.8.2 (default) doesn't work with trusted publishing, 11.6.2 works
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: bun install
- run: bun run test
- name: Run automated release process with semantic-release
if: github.ref_name == 'main'
uses: cycjimmy/semantic-release-action@v6
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}