Skip to content

Commit b056a68

Browse files
committed
chore(release): 2.1.1\n\n- Add CI workflow to publish to npm with provenance via GitHub Actions\n- Bump version to 2.1.1 and update CHANGELOG
1 parent 75c896d commit b056a68

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,38 @@
1-
name: Release
1+
name: Release (npm with provenance)
22

33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "[0-9]+.[0-9]+.[0-9]+"
77

88
permissions:
99
contents: read
10+
id-token: write
1011

1112
jobs:
1213
publish:
13-
name: publish to npm with provenance
1414
runs-on: ubuntu-latest
15-
permissions:
16-
id-token: write # required for provenance
17-
contents: read
1815
steps:
1916
- name: Checkout
2017
uses: actions/checkout@v4
2118

2219
- name: Setup Node.js
2320
uses: actions/setup-node@v4
2421
with:
25-
node-version: '20'
26-
registry-url: 'https://registry.npmjs.org'
22+
node-version: 20
23+
registry-url: https://registry.npmjs.org
2724

28-
- name: Enable Corepack
25+
- name: Enable corepack (Yarn)
2926
run: corepack enable
3027

3128
- name: Install dependencies
3229
run: yarn install --immutable
3330

34-
- name: Build
35-
run: yarn build
31+
- name: Test
32+
run: yarn test
3633

37-
- name: Unit tests
38-
run: yarn test:unit
39-
40-
- name: Publish
34+
- name: Publish to npm (with provenance)
35+
run: npm publish --provenance --tag latest --access public
4136
env:
4237
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
run: npm publish --provenance --access public
4438

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v2.1.1 (2025-08-29)
4+
5+
### Build/Release
6+
7+
- Enable npm provenance by publishing from GitHub Actions with OIDC
8+
- Add release workflow to publish on tag pushes (Yarn install/test, npm publish --provenance)
9+
- No code changes vs 2.1.0
10+
311
## v2.1.0 (2025-08-29)
412

513
### Features

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puid-js",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Simple, fast, flexible and efficient generation of probably unique identifiers (`puid`, aka random strings) of intuitively specified entropy using pre-defined or custom characters, including unicode",
55
"main": "build/main/index.js",
66
"types": "build/main/index.d.ts",

0 commit comments

Comments
 (0)