Skip to content

Commit a10bf9b

Browse files
committed
fix: force release
1 parent a6d8ebd commit a10bf9b

2 files changed

Lines changed: 25 additions & 21 deletions

File tree

.github/workflows/semantic.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ 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
1115
env:
1216
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
13-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
1417
HUSKY: 0
1518
CI: true
1619
steps:
17-
- uses: actions/checkout@master
20+
- uses: actions/checkout@v4
1821
with:
1922
token: ${{ secrets.GH_TOKEN }}
20-
- uses: actions/setup-node@v3
23+
- uses: actions/setup-node@v4
2124
with:
22-
node-version: "22.x"
23-
- run: printf "//`node -p \"require('url').parse('https://registry.npmjs.org').host\"`/:_authToken=${NPM_TOKEN}\n" >> ~/.npmrc
25+
node-version: "lts/*"
2426
- run: npm ci
2527
- run: npm run build --if-present
2628
- name: Upload coverage to Qlty
@@ -29,30 +31,31 @@ jobs:
2931
with:
3032
token: ${{ secrets.CC_TEST_REPORTER_ID }}
3133
files: coverage/lcov.info
32-
- uses: actions/setup-node@v3
33-
with:
34-
node-version: "lts/*"
3534
- run: previousVersion=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json)
3635
- 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
36+
# Install semantic-release and common plugins locally (no-global) so the pipeline can run reliably.
37+
npm install --no-audit --no-fund --no-save \
38+
@semantic-release/changelog \
39+
@semantic-release/commit-analyzer \
40+
@semantic-release/git \
41+
@semantic-release/github \
42+
@semantic-release/exec \
43+
@semantic-release/npm \
44+
@semantic-release/release-notes-generator \
45+
semantic-release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
48+
HUSKY: 0
49+
CI: true
50+
- run: |
51+
# Run semantic-release using the locally installed packages
52+
npx semantic-release@25 --ci
4653
env:
4754
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
48-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
4955
HUSKY: 0
5056
CI: true
51-
- run: npx semantic-release --ci
5257
- run: finalVersion=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json)
5358
- run: |
5459
if [ "$previousVersion" != "$finalVersion" ]; then
5560
git push
5661
fi
57-
env:
58-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

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)