Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update dependency eslint to v9 #12

Closed
wants to merge 2 commits into from
Closed
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
70 changes: 56 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'tests'
name: 'Test & Release'

on:
push:
Expand All @@ -10,24 +10,31 @@ on:

jobs:
test:
name: 'Lint & Test Package'
name: 'Test package'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- run: npm install
- run: npm run dev:prepare
- run: npm run lint:es
- run: npm run lint:types
- run: npm run test
- name: Install
run: |
npm install
npm run dev:prepare

- name: Lint
run: |
npm run lint:es
npm run lint:types

- name: Test
run: npm run test

release:
name: 'Release to NPM registry'
name: 'Release package'
needs: [ test ]
runs-on: ubuntu-latest
if: |
Expand All @@ -39,12 +46,47 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
- run: npm install
- run: npm run dev:prepare
- run: npm run build
- name: Install
run: |
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
npm install
npm run dev:prepare

- name: Release
run: npm run release:ci

bump-version:
name: 'Bump package version'
needs: [ test ]
runs-on: ubuntu-latest
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'renovate/')

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install
run: npm install --from-lockfile

- name: Bump version
id: bump_version
run: |
NEW_VERSION=$(npm version patch -m "chore: bumped package version to %s" | sed 's/v//')
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV

- name: Update CHANGELOG.md
run: |
echo -e "# $NEW_VERSION\n- Bumped dependencies\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
git add CHANGELOG.md

- name: Push changes
run: |
git commit --amend --no-edit
git push origin HEAD:main --follow-tags
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
tag-version-prefix=""
Loading