Skip to content

Commit a7c96b7

Browse files
chore: setup changesets (#392)
1 parent 37b8601 commit a7c96b7

File tree

8 files changed

+1693
-224
lines changed

8 files changed

+1693
-224
lines changed

.all-contributorsrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,3 @@
205205
"repoType": "github",
206206
"commitConvention": "none"
207207
}
208-

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
name: CI
2+
23
on:
34
push:
45
branches:
56
- master
67
pull_request:
78

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
813
env:
914
CI: true
1015

1116
jobs:
1217
test-and-build:
13-
name: 'Test and build'
18+
name: Test and build
1419
runs-on: ubuntu-latest
1520

1621
steps:
@@ -28,7 +33,7 @@ jobs:
2833
path: coverage
2934

3035
upload-code-coverage:
31-
name: 'Upload code coverage'
36+
name: Upload code coverage
3237
needs: ['test-and-build']
3338
runs-on: ubuntu-latest
3439

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
dependabot-auto-merge:
8-
name: 'Dependabot auto merge'
8+
name: Dependabot auto merge
99
runs-on: ubuntu-latest
1010
permissions:
1111
pull-requests: write

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Release with OIDC
2+
# https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available/
3+
# https://docs.npmjs.com/trusted-publishers
4+
5+
name: Release
6+
7+
on:
8+
push:
9+
branches:
10+
- master
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: write # enable pushing changes to the origin
18+
id-token: write # enable generation of an ID token for publishing
19+
pull-requests: write # enable opening a PR for the release
20+
21+
jobs:
22+
release:
23+
name: Version or Publish
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v5
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- uses: actions/setup-node@v6
31+
with:
32+
node-version-file: .nvmrc
33+
34+
# Ensure npm 11.5.1 or later is installed
35+
- run: npm install -g npm@latest
36+
- run: npm ci --ignore-scripts
37+
38+
- name: Create Release PR or Publish to npm
39+
uses: changesets/action@v1
40+
with:
41+
publish: npm run release
42+
commit: 'chore: update version for release'
43+
title: 'chore: update version for release'
44+
env:
45+
# Ephemeral GITHUB_TOKEN won't be able to trigger actions on release PR
46+
# RELEASE_TOKEN can trigger actions on new PR's but seems not to be able to do so on force-pushed PR's.
47+
# To publish the PR created by Changesets, the action must first be closed and then
48+
# manually retriggered by running the "Release / Version or Publish" action on the master branch.
49+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
50+
NPM_CONFIG_PROVENANCE: true

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Change log
1+
# re-reselect
22

33
## 5.0.0
44

0 commit comments

Comments
 (0)