Skip to content

Commit 7662d78

Browse files
committed
fix: force release
1 parent a6d8ebd commit 7662d78

2 files changed

Lines changed: 29 additions & 15 deletions

File tree

.github/workflows/semantic.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: [master]
66
workflow_dispatch:
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
semantic:
1014
runs-on: ubuntu-latest
@@ -14,12 +18,13 @@ jobs:
1418
HUSKY: 0
1519
CI: true
1620
steps:
17-
- uses: actions/checkout@master
21+
- uses: actions/checkout@v4
1822
with:
1923
token: ${{ secrets.GH_TOKEN }}
20-
- uses: actions/setup-node@v3
24+
- uses: actions/setup-node@v4
2125
with:
22-
node-version: "22.x"
26+
node-version: "24.x"
27+
registry-url: 'https://registry.npmjs.org'
2328
- run: printf "//`node -p \"require('url').parse('https://registry.npmjs.org').host\"`/:_authToken=${NPM_TOKEN}\n" >> ~/.npmrc
2429
- run: npm ci
2530
- run: npm run build --if-present
@@ -29,26 +34,34 @@ jobs:
2934
with:
3035
token: ${{ secrets.CC_TEST_REPORTER_ID }}
3136
files: coverage/lcov.info
32-
- uses: actions/setup-node@v3
37+
- uses: actions/setup-node@v4
3338
with:
34-
node-version: "lts/*"
39+
node-version: "24.x"
3540
- run: previousVersion=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json)
3641
- run: |
37-
npm i -g \
38-
@semantic-release/changelog@6.0.3 \
39-
@semantic-release/commit-analyzer@13.0.1 \
40-
@semantic-release/git@10.0.1 \
41-
@semantic-release/github@11.0.1 \
42-
@semantic-release/exec@6.0.3 \
43-
@semantic-release/npm@12.0.1 \
44-
@semantic-release/release-notes-generator@14.0.3 \
45-
semantic-release@24.2.1
42+
# Install semantic-release and common plugins locally (no-global) so the pipeline can run reliably.
43+
npm install --no-audit --no-fund --no-save \
44+
@semantic-release/changelog \
45+
@semantic-release/commit-analyzer \
46+
@semantic-release/git \
47+
@semantic-release/github \
48+
@semantic-release/exec \
49+
@semantic-release/npm \
50+
@semantic-release/release-notes-generator \
51+
semantic-release
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
54+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
55+
HUSKY: 0
56+
CI: true
57+
- run: |
58+
# Run semantic-release using the locally installed packages
59+
npx semantic-release@25 --ci
4660
env:
4761
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4862
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
4963
HUSKY: 0
5064
CI: true
51-
- run: npx semantic-release --ci
5265
- run: finalVersion=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json)
5366
- run: |
5467
if [ "$previousVersion" != "$finalVersion" ]; then

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ sonic-date x 2,613,432 ops/sec ±0.73% (93 runs sampled)
1717

1818
The catch is that our implementation is not immutable, and many of the type checking date-fns does we do not. So, although date-fns is safer for a general purpose use, sonic-date is really faster and best to be used in safer environments, like a back-end service.
1919

20+
2021
We'll add more methods from date-fns by demand, always caring about performance and precision in the first place.
2122

2223
## How to Install

0 commit comments

Comments
 (0)